@@ -35,67 +35,67 @@ tests/cases/compiler/operationsAvailableOnPromisedType.ts(27,5): error TS2349: T
35
35
a | b;
36
36
~
37
37
!!! error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
38
- !!! related TS2763 tests/cases/compiler/operationsAvailableOnPromisedType.ts:11:9: Did you forget to use 'await'?
38
+ !!! related TS2773 tests/cases/compiler/operationsAvailableOnPromisedType.ts:11:9: Did you forget to use 'await'?
39
39
b | a;
40
40
~
41
41
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
42
- !!! related TS2763 tests/cases/compiler/operationsAvailableOnPromisedType.ts:12:5: Did you forget to use 'await'?
42
+ !!! related TS2773 tests/cases/compiler/operationsAvailableOnPromisedType.ts:12:5: Did you forget to use 'await'?
43
43
a + b;
44
44
~~~~~
45
45
!!! error TS2365: Operator '+' cannot be applied to types 'number' and 'Promise<number>'.
46
- !!! related TS2763 tests/cases/compiler/operationsAvailableOnPromisedType.ts:13:5: Did you forget to use 'await'?
46
+ !!! related TS2773 tests/cases/compiler/operationsAvailableOnPromisedType.ts:13:5: Did you forget to use 'await'?
47
47
a > b;
48
48
~~~~~
49
49
!!! error TS2365: Operator '>' cannot be applied to types 'number' and 'Promise<number>'.
50
- !!! related TS2763 tests/cases/compiler/operationsAvailableOnPromisedType.ts:14:5: Did you forget to use 'await'?
50
+ !!! related TS2773 tests/cases/compiler/operationsAvailableOnPromisedType.ts:14:5: Did you forget to use 'await'?
51
51
b++;
52
52
~
53
53
!!! error TS2356: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type.
54
- !!! related TS2763 tests/cases/compiler/operationsAvailableOnPromisedType.ts:15:5: Did you forget to use 'await'?
54
+ !!! related TS2773 tests/cases/compiler/operationsAvailableOnPromisedType.ts:15:5: Did you forget to use 'await'?
55
55
--b;
56
56
~
57
57
!!! error TS2356: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type.
58
- !!! related TS2763 tests/cases/compiler/operationsAvailableOnPromisedType.ts:16:7: Did you forget to use 'await'?
58
+ !!! related TS2773 tests/cases/compiler/operationsAvailableOnPromisedType.ts:16:7: Did you forget to use 'await'?
59
59
a === b;
60
60
~~~~~~~
61
61
!!! error TS2367: This condition will always return 'false' since the types 'number' and 'Promise<number>' have no overlap.
62
- !!! related TS2763 tests/cases/compiler/operationsAvailableOnPromisedType.ts:17:5: Did you forget to use 'await'?
62
+ !!! related TS2773 tests/cases/compiler/operationsAvailableOnPromisedType.ts:17:5: Did you forget to use 'await'?
63
63
[...c];
64
64
~
65
65
!!! error TS2461: Type 'Promise<string[]>' is not an array type.
66
- !!! related TS2763 tests/cases/compiler/operationsAvailableOnPromisedType.ts:18:9: Did you forget to use 'await'?
66
+ !!! related TS2773 tests/cases/compiler/operationsAvailableOnPromisedType.ts:18:9: Did you forget to use 'await'?
67
67
for (const s of c) {
68
68
~
69
69
!!! error TS2495: Type 'Promise<string[]>' is not an array type or a string type.
70
- !!! related TS2763 tests/cases/compiler/operationsAvailableOnPromisedType.ts:19:21: Did you forget to use 'await'?
70
+ !!! related TS2773 tests/cases/compiler/operationsAvailableOnPromisedType.ts:19:21: Did you forget to use 'await'?
71
71
fn(b, b, c, d, e, f, g);
72
72
~
73
73
!!! error TS2345: Argument of type 'Promise<number>' is not assignable to parameter of type 'number'.
74
- !!! related TS2763 tests/cases/compiler/operationsAvailableOnPromisedType.ts:20:12: Did you forget to use 'await'?
74
+ !!! related TS2773 tests/cases/compiler/operationsAvailableOnPromisedType.ts:20:12: Did you forget to use 'await'?
75
75
d.prop;
76
76
~~~~
77
77
!!! error TS2570: Property 'prop' does not exist on type 'Promise<{ prop: string; }>'. Did you forget to use 'await'?
78
78
}
79
79
for await (const s of c) {}
80
80
~
81
81
!!! error TS2495: Type 'Promise<string[]>' is not an array type or a string type.
82
- !!! related TS2763 tests/cases/compiler/operationsAvailableOnPromisedType.ts:23:27: Did you forget to use 'await'?
82
+ !!! related TS2773 tests/cases/compiler/operationsAvailableOnPromisedType.ts:23:27: Did you forget to use 'await'?
83
83
e();
84
84
~
85
85
!!! error TS2349: This expression is not callable.
86
86
!!! error TS2349: Type 'Promise<() => void>' has no call signatures.
87
- !!! related TS2763 tests/cases/compiler/operationsAvailableOnPromisedType.ts:24:5: Did you forget to use 'await'?
87
+ !!! related TS2773 tests/cases/compiler/operationsAvailableOnPromisedType.ts:24:5: Did you forget to use 'await'?
88
88
f();
89
89
~
90
90
!!! error TS2349: This expression is not callable.
91
91
!!! error TS2349: Not all constituents of type 'Promise<() => void> | (() => void)' are callable.
92
92
!!! error TS2349: Type 'Promise<() => void>' has no call signatures.
93
- !!! related TS2763 tests/cases/compiler/operationsAvailableOnPromisedType.ts:25:5: Did you forget to use 'await'?
93
+ !!! related TS2773 tests/cases/compiler/operationsAvailableOnPromisedType.ts:25:5: Did you forget to use 'await'?
94
94
new g();
95
95
~
96
96
!!! error TS2351: This expression is not constructable.
97
97
!!! error TS2351: Type 'Promise<new () => any>' has no construct signatures.
98
- !!! related TS2763 tests/cases/compiler/operationsAvailableOnPromisedType.ts:26:9: Did you forget to use 'await'?
98
+ !!! related TS2773 tests/cases/compiler/operationsAvailableOnPromisedType.ts:26:9: Did you forget to use 'await'?
99
99
b();
100
100
~
101
101
!!! error TS2349: This expression is not callable.
0 commit comments