Skip to content

Commit 5b45f42

Browse files
committed
Revise tests
1 parent 6c11cf4 commit 5b45f42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/cases/compiler/recursiveConditionalTypes.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type Awaited<T> =
99
T;
1010

1111
type MyPromise<T> = {
12-
then<U>(f: ((value: T) => U | MyPromise<U>) | null | undefined): MyPromise<U>;
12+
then<U>(f: ((value: T) => U | PromiseLike<U>) | null | undefined): MyPromise<U>;
1313
}
1414

1515
type InfinitePromise<T> = Promise<InfinitePromise<T>>;
@@ -66,7 +66,7 @@ declare function foo<T>(x: Box1<Box1<T>>): T;
6666

6767
declare let z: Box2<Box2<string>>;
6868

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

7171
// Intersect tuple element types
7272

0 commit comments

Comments
 (0)