Skip to content
Prev Previous commit
Next Next commit
Revise tests
  • Loading branch information
ahejlsberg committed Aug 13, 2020
commit 5b45f42c79f9ef9b43ce024d0505b3cd8e07d2b5
4 changes: 2 additions & 2 deletions tests/cases/compiler/recursiveConditionalTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type Awaited<T> =
T;

type MyPromise<T> = {
then<U>(f: ((value: T) => U | MyPromise<U>) | null | undefined): MyPromise<U>;
then<U>(f: ((value: T) => U | PromiseLike<U>) | null | undefined): MyPromise<U>;
}

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

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

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

// Intersect tuple element types

Expand Down