You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: testdata/baselines/reference/submodule/compiler/awaitedTypeNoLib.errors.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ error TS2318: Cannot find global type 'String'.
10
10
awaitedTypeNoLib.ts(3,15): error TS2304: Cannot find name 'PromiseLike'.
11
11
awaitedTypeNoLib.ts(18,27): error TS2345: Argument of type 'Thenable<NotPromise<TResult>> | NotPromise<TResult>' is not assignable to parameter of type 'Thenable<TResult>'.
12
12
Type 'NotPromise<TResult>' is not assignable to type 'Thenable<TResult>'.
13
-
Type '(TResult extends PromiseLike<unknown> ? never : TResult) | TResult' is not assignable to type 'Thenable<TResult>'.
13
+
Type 'TResult | (TResult extends PromiseLike<unknown> ? never : TResult)' is not assignable to type 'Thenable<TResult>'.
14
14
Type 'Thenable<unknown> & TResult' is not assignable to type 'Thenable<TResult>'.
15
15
Type 'unknown' is not assignable to type 'TResult'.
16
16
'TResult' could be instantiated with an arbitrary type which could be unrelated to 'unknown'.
@@ -49,7 +49,7 @@ awaitedTypeNoLib.ts(18,27): error TS2345: Argument of type 'Thenable<NotPromise<
49
49
~~~~~~
50
50
!!! error TS2345: Argument of type 'Thenable<NotPromise<TResult>> | NotPromise<TResult>' is not assignable to parameter of type 'Thenable<TResult>'.
51
51
!!! error TS2345: Type 'NotPromise<TResult>' is not assignable to type 'Thenable<TResult>'.
52
-
!!! error TS2345: Type '(TResult extends PromiseLike<unknown> ? never : TResult) | TResult' is not assignable to type 'Thenable<TResult>'.
52
+
!!! error TS2345: Type 'TResult | (TResult extends PromiseLike<unknown> ? never : TResult)' is not assignable to type 'Thenable<TResult>'.
53
53
!!! error TS2345: Type 'Thenable<unknown> & TResult' is not assignable to type 'Thenable<TResult>'.
54
54
!!! error TS2345: Type 'unknown' is not assignable to type 'TResult'.
55
55
!!! error TS2345: 'TResult' could be instantiated with an arbitrary type which could be unrelated to 'unknown'.
awaitedTypeNoLib.ts(3,15): error TS2304: Cannot find name 'PromiseLike'.
5
+
awaitedTypeNoLib.ts(18,27): error TS2345: Argument of type 'Thenable<NotPromise<TResult>> | NotPromise<TResult>' is not assignable to parameter of type 'Thenable<TResult>'.
6
+
Type 'NotPromise<TResult>' is not assignable to type 'Thenable<TResult>'.
7
+
- Type '(TResult extends PromiseLike<unknown> ? never : TResult) | TResult' is not assignable to type 'Thenable<TResult>'.
8
+
+ Type 'TResult | (TResult extends PromiseLike<unknown> ? never : TResult)' is not assignable to type 'Thenable<TResult>'.
9
+
Type 'Thenable<unknown> & TResult' is not assignable to type 'Thenable<TResult>'.
10
+
Type 'unknown' is not assignable to type 'TResult'.
11
+
'TResult' could be instantiated with an arbitrary type which could be unrelated to 'unknown'.
12
+
@@= skipped -39, +39 lines =@@
13
+
~~~~~~
14
+
!!! error TS2345: Argument of type 'Thenable<NotPromise<TResult>> | NotPromise<TResult>' is not assignable to parameter of type 'Thenable<TResult>'.
15
+
!!! error TS2345: Type 'NotPromise<TResult>' is not assignable to type 'Thenable<TResult>'.
16
+
-!!! error TS2345: Type '(TResult extends PromiseLike<unknown> ? never : TResult) | TResult' is not assignable to type 'Thenable<TResult>'.
17
+
+!!! error TS2345: Type 'TResult | (TResult extends PromiseLike<unknown> ? never : TResult)' is not assignable to type 'Thenable<TResult>'.
18
+
!!! error TS2345: Type 'Thenable<unknown> & TResult' is not assignable to type 'Thenable<TResult>'.
19
+
!!! error TS2345: Type 'unknown' is not assignable to type 'TResult'.
20
+
!!! error TS2345: 'TResult' could be instantiated with an arbitrary type which could be unrelated to 'unknown'.
0 commit comments