Skip to content

Commit 4ce18e0

Browse files
committed
Update test
1 parent cd7165c commit 4ce18e0

5 files changed

+6
-6
lines changed

tests/baselines/reference/recursiveConditionalTypes.errors.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ tests/cases/compiler/recursiveConditionalTypes.ts(169,5): error TS2322: Type 'nu
146146

147147
declare let z: Box2<Box2<string>>;
148148

149-
foo(z); // unknown, but ideally would be string (requires unique recursion ID for each type reference)
149+
foo(z); // string
150150

151151
// Intersect tuple element types
152152

tests/baselines/reference/recursiveConditionalTypes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ declare function foo<T>(x: Box1<Box1<T>>): T;
9292

9393
declare let z: Box2<Box2<string>>;
9494

95-
foo(z); // unknown, but ideally would be string (requires unique recursion ID for each type reference)
95+
foo(z); // string
9696

9797
// Intersect tuple element types
9898

@@ -192,7 +192,7 @@ unbox(b3); // InfBox<string>
192192
unbox({ value: { value: { value: { value: { value: { value: 5 } } } } } }); // number
193193
unbox(b4); // { value: { value: typeof b4 }}
194194
unbox({ value: { value: { get value() { return this; } } } }); // { readonly value: ... }
195-
foo(z); // unknown, but ideally would be string (requires unique recursion ID for each type reference)
195+
foo(z); // string
196196
function f20(x, y) {
197197
x = y;
198198
y = x;

tests/baselines/reference/recursiveConditionalTypes.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ declare let z: Box2<Box2<string>>;
362362
>Box2 : Symbol(Box2, Decl(recursiveConditionalTypes.ts, 86, 28))
363363
>Box2 : Symbol(Box2, Decl(recursiveConditionalTypes.ts, 86, 28))
364364

365-
foo(z); // unknown, but ideally would be string (requires unique recursion ID for each type reference)
365+
foo(z); // string
366366
>foo : Symbol(foo, Decl(recursiveConditionalTypes.ts, 87, 28))
367367
>z : Symbol(z, Decl(recursiveConditionalTypes.ts, 91, 11))
368368

tests/baselines/reference/recursiveConditionalTypes.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ declare function foo<T>(x: Box1<Box1<T>>): T;
248248
declare let z: Box2<Box2<string>>;
249249
>z : Box2<Box2<string>>
250250

251-
foo(z); // unknown, but ideally would be string (requires unique recursion ID for each type reference)
251+
foo(z); // string
252252
>foo(z) : string
253253
>foo : <T>(x: Box1<Box1<T>>) => T
254254
>z : Box2<Box2<string>>

tests/cases/compiler/recursiveConditionalTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ declare function foo<T>(x: Box1<Box1<T>>): T;
9595

9696
declare let z: Box2<Box2<string>>;
9797

98-
foo(z); // unknown, but ideally would be string (requires unique recursion ID for each type reference)
98+
foo(z); // string
9999

100100
// Intersect tuple element types
101101

0 commit comments

Comments
 (0)