3
3
//// [promiseType.ts]
4
4
declare var p: Promise < boolean > ;
5
5
declare var x : any ;
6
+ declare var b: bigint ;
6
7
7
8
async function A ( ) {
8
9
const a = await p ;
@@ -98,6 +99,7 @@ const p16 = p.catch(() => {});
98
99
const p17 = p . catch ( ( ) => { throw 1 } ) ;
99
100
const p18 = p . catch ( ( ) => Promise . reject ( 1 ) ) ;
100
101
const p19 = p . catch ( ( ) => Promise . resolve ( 1 ) ) ;
102
+ const p19a = p . catch ( ( ) => b && Promise . resolve ( 1 ) ) ;
101
103
102
104
const p20 = p . then ( undefined ) ;
103
105
const p21 = p . then ( null ) ;
@@ -108,6 +110,7 @@ const p25 = p.then(() => null);
108
110
const p26 = p . then ( ( ) => { } ) ;
109
111
const p27 = p . then ( ( ) => { throw 1 } ) ;
110
112
const p28 = p . then ( ( ) => Promise . resolve ( 1 ) ) ;
113
+ const p28a = p . then ( ( ) => b && Promise . resolve ( 1 ) ) ;
111
114
const p29 = p . then ( ( ) => Promise . reject ( 1 ) ) ;
112
115
113
116
const p30 = p . then ( undefined , undefined ) ;
@@ -119,6 +122,7 @@ const p35 = p.then(undefined, () => null);
119
122
const p36 = p . then ( undefined , ( ) => { } ) ;
120
123
const p37 = p . then ( undefined , ( ) => { throw 1 } ) ;
121
124
const p38 = p . then ( undefined , ( ) => Promise . resolve ( 1 ) ) ;
125
+ const p38a = p . then ( undefined , ( ) => b && Promise . resolve ( 1 ) ) ;
122
126
const p39 = p . then ( undefined , ( ) => Promise . reject ( 1 ) ) ;
123
127
124
128
const p40 = p . then ( null , undefined ) ;
@@ -130,6 +134,7 @@ const p45 = p.then(null, () => null);
130
134
const p46 = p . then ( null , ( ) => { } ) ;
131
135
const p47 = p . then ( null , ( ) => { throw 1 } ) ;
132
136
const p48 = p . then ( null , ( ) => Promise . resolve ( 1 ) ) ;
137
+ const p48a = p . then ( null , ( ) => b && Promise . resolve ( 1 ) ) ;
133
138
const p49 = p . then ( null , ( ) => Promise . reject ( 1 ) ) ;
134
139
135
140
const p50 = p . then ( ( ) => "1" , undefined ) ;
@@ -141,6 +146,7 @@ const p55 = p.then(() => "1", () => null);
141
146
const p56 = p . then ( ( ) => "1" , ( ) => { } ) ;
142
147
const p57 = p . then ( ( ) => "1" , ( ) => { throw 1 } ) ;
143
148
const p58 = p . then ( ( ) => "1" , ( ) => Promise . resolve ( 1 ) ) ;
149
+ const p58a = p . then ( ( ) => "1" , ( ) => b && Promise . resolve ( 1 ) ) ;
144
150
const p59 = p . then ( ( ) => "1" , ( ) => Promise . reject ( 1 ) ) ;
145
151
146
152
const p60 = p . then ( ( ) => x , undefined ) ;
@@ -152,6 +158,7 @@ const p65 = p.then(() => x, () => null);
152
158
const p66 = p . then ( ( ) => x , ( ) => { } ) ;
153
159
const p67 = p . then ( ( ) => x , ( ) => { throw 1 } ) ;
154
160
const p68 = p . then ( ( ) => x , ( ) => Promise . resolve ( 1 ) ) ;
161
+ const p68a = p . then ( ( ) => x , ( ) => b && Promise . resolve ( 1 ) ) ;
155
162
const p69 = p . then ( ( ) => x , ( ) => Promise . reject ( 1 ) ) ;
156
163
157
164
const p70 = p . then ( ( ) => undefined , undefined ) ;
@@ -163,6 +170,7 @@ const p75 = p.then(() => undefined, () => null);
163
170
const p76 = p . then ( ( ) => undefined , ( ) => { } ) ;
164
171
const p77 = p . then ( ( ) => undefined , ( ) => { throw 1 } ) ;
165
172
const p78 = p . then ( ( ) => undefined , ( ) => Promise . resolve ( 1 ) ) ;
173
+ const p78a = p . then ( ( ) => undefined , ( ) => b && Promise . resolve ( 1 ) ) ;
166
174
const p79 = p . then ( ( ) => undefined , ( ) => Promise . reject ( 1 ) ) ;
167
175
168
176
const p80 = p . then ( ( ) => null , undefined ) ;
@@ -174,6 +182,7 @@ const p85 = p.then(() => null, () => null);
174
182
const p86 = p . then ( ( ) => null , ( ) => { } ) ;
175
183
const p87 = p . then ( ( ) => null , ( ) => { throw 1 } ) ;
176
184
const p88 = p . then ( ( ) => null , ( ) => Promise . resolve ( 1 ) ) ;
185
+ const p88a = p . then ( ( ) => null , ( ) => b && Promise . resolve ( 1 ) ) ;
177
186
const p89 = p . then ( ( ) => null , ( ) => Promise . reject ( 1 ) ) ;
178
187
179
188
const p90 = p . then ( ( ) => { } , undefined ) ;
@@ -185,6 +194,7 @@ const p95 = p.then(() => {}, () => null);
185
194
const p96 = p . then ( ( ) => { } , ( ) => { } ) ;
186
195
const p97 = p . then ( ( ) => { } , ( ) => { throw 1 } ) ;
187
196
const p98 = p . then ( ( ) => { } , ( ) => Promise . resolve ( 1 ) ) ;
197
+ const p98a = p . then ( ( ) => { } , ( ) => b && Promise . resolve ( 1 ) ) ;
188
198
const p99 = p . then ( ( ) => { } , ( ) => Promise . reject ( 1 ) ) ;
189
199
190
200
const pa0 = p . then ( ( ) => { throw 1 } , undefined ) ;
@@ -196,6 +206,7 @@ const pa5 = p.then(() => {throw 1}, () => null);
196
206
const pa6 = p . then ( ( ) => { throw 1 } , ( ) => { } ) ;
197
207
const pa7 = p . then ( ( ) => { throw 1 } , ( ) => { throw 1 } ) ;
198
208
const pa8 = p . then ( ( ) => { throw 1 } , ( ) => Promise . resolve ( 1 ) ) ;
209
+ const pa8a = p . then ( ( ) => { throw 1 } , ( ) => b && Promise . resolve ( 1 ) ) ;
199
210
const pa9 = p . then ( ( ) => { throw 1 } , ( ) => Promise . reject ( 1 ) ) ;
200
211
201
212
const pb0 = p . then ( ( ) => Promise . resolve ( "1" ) , undefined ) ;
@@ -207,6 +218,7 @@ const pb5 = p.then(() => Promise.resolve("1"), () => null);
207
218
const pb6 = p . then ( ( ) => Promise . resolve ( "1" ) , ( ) => { } ) ;
208
219
const pb7 = p . then ( ( ) => Promise . resolve ( "1" ) , ( ) => { throw 1 } ) ;
209
220
const pb8 = p . then ( ( ) => Promise . resolve ( "1" ) , ( ) => Promise . resolve ( 1 ) ) ;
221
+ const pb8a = p . then ( ( ) => Promise . resolve ( "1" ) , ( ) => b && Promise . resolve ( 1 ) ) ;
210
222
const pb9 = p . then ( ( ) => Promise . resolve ( "1" ) , ( ) => Promise . reject ( 1 ) ) ;
211
223
212
224
const pc0 = p . then ( ( ) => Promise . reject ( "1" ) , undefined ) ;
@@ -218,13 +230,15 @@ const pc5 = p.then(() => Promise.reject("1"), () => null);
218
230
const pc6 = p . then ( ( ) => Promise . reject ( "1" ) , ( ) => { } ) ;
219
231
const pc7 = p . then ( ( ) => Promise . reject ( "1" ) , ( ) => { throw 1 } ) ;
220
232
const pc8 = p . then ( ( ) => Promise . reject ( "1" ) , ( ) => Promise . resolve ( 1 ) ) ;
233
+ const pc8a = p . then ( ( ) => Promise . reject ( "1" ) , ( ) => b && Promise . resolve ( 1 ) ) ;
221
234
const pc9 = p . then ( ( ) => Promise . reject ( "1" ) , ( ) => Promise . reject ( 1 ) ) ;
222
235
223
236
Promise . resolve ( undefined as Promise < string > | number ) ;
224
237
Promise . resolve ( undefined as Promise < Promise < number >> ) ;
225
238
Promise . resolve ( undefined as string | Promise < Promise < number >> ) ;
226
239
Promise . resolve ( undefined as Promise < string > | Promise < Promise < number >> ) ;
227
- Promise . resolve ( undefined as Promise < string | Promise < Promise < number >>> ) ;
240
+ Promise . resolve ( undefined as Promise < string | Promise < Promise < number >>> ) ;
241
+
228
242
229
243
//// [promiseType.js]
230
244
var __awaiter = ( this && this . __awaiter ) || function ( thisArg , _arguments , P , generator ) {
@@ -337,6 +351,7 @@ const p16 = p.catch(() => { });
337
351
const p17 = p . catch ( ( ) => { throw 1 ; } ) ;
338
352
const p18 = p . catch ( ( ) => Promise . reject ( 1 ) ) ;
339
353
const p19 = p . catch ( ( ) => Promise . resolve ( 1 ) ) ;
354
+ const p19a = p . catch ( ( ) => b && Promise . resolve ( 1 ) ) ;
340
355
const p20 = p . then ( undefined ) ;
341
356
const p21 = p . then ( null ) ;
342
357
const p22 = p . then ( ( ) => 1 ) ;
@@ -346,6 +361,7 @@ const p25 = p.then(() => null);
346
361
const p26 = p . then ( ( ) => { } ) ;
347
362
const p27 = p . then ( ( ) => { throw 1 ; } ) ;
348
363
const p28 = p . then ( ( ) => Promise . resolve ( 1 ) ) ;
364
+ const p28a = p . then ( ( ) => b && Promise . resolve ( 1 ) ) ;
349
365
const p29 = p . then ( ( ) => Promise . reject ( 1 ) ) ;
350
366
const p30 = p . then ( undefined , undefined ) ;
351
367
const p31 = p . then ( undefined , null ) ;
@@ -356,6 +372,7 @@ const p35 = p.then(undefined, () => null);
356
372
const p36 = p . then ( undefined , ( ) => { } ) ;
357
373
const p37 = p . then ( undefined , ( ) => { throw 1 ; } ) ;
358
374
const p38 = p . then ( undefined , ( ) => Promise . resolve ( 1 ) ) ;
375
+ const p38a = p . then ( undefined , ( ) => b && Promise . resolve ( 1 ) ) ;
359
376
const p39 = p . then ( undefined , ( ) => Promise . reject ( 1 ) ) ;
360
377
const p40 = p . then ( null , undefined ) ;
361
378
const p41 = p . then ( null , null ) ;
@@ -366,6 +383,7 @@ const p45 = p.then(null, () => null);
366
383
const p46 = p . then ( null , ( ) => { } ) ;
367
384
const p47 = p . then ( null , ( ) => { throw 1 ; } ) ;
368
385
const p48 = p . then ( null , ( ) => Promise . resolve ( 1 ) ) ;
386
+ const p48a = p . then ( null , ( ) => b && Promise . resolve ( 1 ) ) ;
369
387
const p49 = p . then ( null , ( ) => Promise . reject ( 1 ) ) ;
370
388
const p50 = p . then ( ( ) => "1" , undefined ) ;
371
389
const p51 = p . then ( ( ) => "1" , null ) ;
@@ -376,6 +394,7 @@ const p55 = p.then(() => "1", () => null);
376
394
const p56 = p . then ( ( ) => "1" , ( ) => { } ) ;
377
395
const p57 = p . then ( ( ) => "1" , ( ) => { throw 1 ; } ) ;
378
396
const p58 = p . then ( ( ) => "1" , ( ) => Promise . resolve ( 1 ) ) ;
397
+ const p58a = p . then ( ( ) => "1" , ( ) => b && Promise . resolve ( 1 ) ) ;
379
398
const p59 = p . then ( ( ) => "1" , ( ) => Promise . reject ( 1 ) ) ;
380
399
const p60 = p . then ( ( ) => x , undefined ) ;
381
400
const p61 = p . then ( ( ) => x , null ) ;
@@ -386,6 +405,7 @@ const p65 = p.then(() => x, () => null);
386
405
const p66 = p . then ( ( ) => x , ( ) => { } ) ;
387
406
const p67 = p . then ( ( ) => x , ( ) => { throw 1 ; } ) ;
388
407
const p68 = p . then ( ( ) => x , ( ) => Promise . resolve ( 1 ) ) ;
408
+ const p68a = p . then ( ( ) => x , ( ) => b && Promise . resolve ( 1 ) ) ;
389
409
const p69 = p . then ( ( ) => x , ( ) => Promise . reject ( 1 ) ) ;
390
410
const p70 = p . then ( ( ) => undefined , undefined ) ;
391
411
const p71 = p . then ( ( ) => undefined , null ) ;
@@ -396,6 +416,7 @@ const p75 = p.then(() => undefined, () => null);
396
416
const p76 = p . then ( ( ) => undefined , ( ) => { } ) ;
397
417
const p77 = p . then ( ( ) => undefined , ( ) => { throw 1 ; } ) ;
398
418
const p78 = p . then ( ( ) => undefined , ( ) => Promise . resolve ( 1 ) ) ;
419
+ const p78a = p . then ( ( ) => undefined , ( ) => b && Promise . resolve ( 1 ) ) ;
399
420
const p79 = p . then ( ( ) => undefined , ( ) => Promise . reject ( 1 ) ) ;
400
421
const p80 = p . then ( ( ) => null , undefined ) ;
401
422
const p81 = p . then ( ( ) => null , null ) ;
@@ -406,6 +427,7 @@ const p85 = p.then(() => null, () => null);
406
427
const p86 = p . then ( ( ) => null , ( ) => { } ) ;
407
428
const p87 = p . then ( ( ) => null , ( ) => { throw 1 ; } ) ;
408
429
const p88 = p . then ( ( ) => null , ( ) => Promise . resolve ( 1 ) ) ;
430
+ const p88a = p . then ( ( ) => null , ( ) => b && Promise . resolve ( 1 ) ) ;
409
431
const p89 = p . then ( ( ) => null , ( ) => Promise . reject ( 1 ) ) ;
410
432
const p90 = p . then ( ( ) => { } , undefined ) ;
411
433
const p91 = p . then ( ( ) => { } , null ) ;
@@ -416,6 +438,7 @@ const p95 = p.then(() => { }, () => null);
416
438
const p96 = p . then ( ( ) => { } , ( ) => { } ) ;
417
439
const p97 = p . then ( ( ) => { } , ( ) => { throw 1 ; } ) ;
418
440
const p98 = p . then ( ( ) => { } , ( ) => Promise . resolve ( 1 ) ) ;
441
+ const p98a = p . then ( ( ) => { } , ( ) => b && Promise . resolve ( 1 ) ) ;
419
442
const p99 = p . then ( ( ) => { } , ( ) => Promise . reject ( 1 ) ) ;
420
443
const pa0 = p . then ( ( ) => { throw 1 ; } , undefined ) ;
421
444
const pa1 = p . then ( ( ) => { throw 1 ; } , null ) ;
@@ -426,6 +449,7 @@ const pa5 = p.then(() => { throw 1; }, () => null);
426
449
const pa6 = p . then ( ( ) => { throw 1 ; } , ( ) => { } ) ;
427
450
const pa7 = p . then ( ( ) => { throw 1 ; } , ( ) => { throw 1 ; } ) ;
428
451
const pa8 = p . then ( ( ) => { throw 1 ; } , ( ) => Promise . resolve ( 1 ) ) ;
452
+ const pa8a = p . then ( ( ) => { throw 1 ; } , ( ) => b && Promise . resolve ( 1 ) ) ;
429
453
const pa9 = p . then ( ( ) => { throw 1 ; } , ( ) => Promise . reject ( 1 ) ) ;
430
454
const pb0 = p . then ( ( ) => Promise . resolve ( "1" ) , undefined ) ;
431
455
const pb1 = p . then ( ( ) => Promise . resolve ( "1" ) , null ) ;
@@ -436,6 +460,7 @@ const pb5 = p.then(() => Promise.resolve("1"), () => null);
436
460
const pb6 = p . then ( ( ) => Promise . resolve ( "1" ) , ( ) => { } ) ;
437
461
const pb7 = p . then ( ( ) => Promise . resolve ( "1" ) , ( ) => { throw 1 ; } ) ;
438
462
const pb8 = p . then ( ( ) => Promise . resolve ( "1" ) , ( ) => Promise . resolve ( 1 ) ) ;
463
+ const pb8a = p . then ( ( ) => Promise . resolve ( "1" ) , ( ) => b && Promise . resolve ( 1 ) ) ;
439
464
const pb9 = p . then ( ( ) => Promise . resolve ( "1" ) , ( ) => Promise . reject ( 1 ) ) ;
440
465
const pc0 = p . then ( ( ) => Promise . reject ( "1" ) , undefined ) ;
441
466
const pc1 = p . then ( ( ) => Promise . reject ( "1" ) , null ) ;
@@ -446,6 +471,7 @@ const pc5 = p.then(() => Promise.reject("1"), () => null);
446
471
const pc6 = p . then ( ( ) => Promise . reject ( "1" ) , ( ) => { } ) ;
447
472
const pc7 = p . then ( ( ) => Promise . reject ( "1" ) , ( ) => { throw 1 ; } ) ;
448
473
const pc8 = p . then ( ( ) => Promise . reject ( "1" ) , ( ) => Promise . resolve ( 1 ) ) ;
474
+ const pc8a = p . then ( ( ) => Promise . reject ( "1" ) , ( ) => b && Promise . resolve ( 1 ) ) ;
449
475
const pc9 = p . then ( ( ) => Promise . reject ( "1" ) , ( ) => Promise . reject ( 1 ) ) ;
450
476
Promise . resolve ( undefined ) ;
451
477
Promise . resolve ( undefined ) ;
0 commit comments