33//// [promiseType.ts]
44declare var p: Promise < boolean > ;
55declare var x : any ;
6+ declare var b: bigint ;
67
78async function A ( ) {
89 const a = await p ;
@@ -98,6 +99,7 @@ const p16 = p.catch(() => {});
9899const p17 = p . catch ( ( ) => { throw 1 } ) ;
99100const p18 = p . catch ( ( ) => Promise . reject ( 1 ) ) ;
100101const p19 = p . catch ( ( ) => Promise . resolve ( 1 ) ) ;
102+ const p19a = p . catch ( ( ) => b && Promise . resolve ( 1 ) ) ;
101103
102104const p20 = p . then ( undefined ) ;
103105const p21 = p . then ( null ) ;
@@ -108,6 +110,7 @@ const p25 = p.then(() => null);
108110const p26 = p . then ( ( ) => { } ) ;
109111const p27 = p . then ( ( ) => { throw 1 } ) ;
110112const p28 = p . then ( ( ) => Promise . resolve ( 1 ) ) ;
113+ const p28a = p . then ( ( ) => b && Promise . resolve ( 1 ) ) ;
111114const p29 = p . then ( ( ) => Promise . reject ( 1 ) ) ;
112115
113116const p30 = p . then ( undefined , undefined ) ;
@@ -119,6 +122,7 @@ const p35 = p.then(undefined, () => null);
119122const p36 = p . then ( undefined , ( ) => { } ) ;
120123const p37 = p . then ( undefined , ( ) => { throw 1 } ) ;
121124const p38 = p . then ( undefined , ( ) => Promise . resolve ( 1 ) ) ;
125+ const p38a = p . then ( undefined , ( ) => b && Promise . resolve ( 1 ) ) ;
122126const p39 = p . then ( undefined , ( ) => Promise . reject ( 1 ) ) ;
123127
124128const p40 = p . then ( null , undefined ) ;
@@ -130,6 +134,7 @@ const p45 = p.then(null, () => null);
130134const p46 = p . then ( null , ( ) => { } ) ;
131135const p47 = p . then ( null , ( ) => { throw 1 } ) ;
132136const p48 = p . then ( null , ( ) => Promise . resolve ( 1 ) ) ;
137+ const p48a = p . then ( null , ( ) => b && Promise . resolve ( 1 ) ) ;
133138const p49 = p . then ( null , ( ) => Promise . reject ( 1 ) ) ;
134139
135140const p50 = p . then ( ( ) => "1" , undefined ) ;
@@ -141,6 +146,7 @@ const p55 = p.then(() => "1", () => null);
141146const p56 = p . then ( ( ) => "1" , ( ) => { } ) ;
142147const p57 = p . then ( ( ) => "1" , ( ) => { throw 1 } ) ;
143148const p58 = p . then ( ( ) => "1" , ( ) => Promise . resolve ( 1 ) ) ;
149+ const p58a = p . then ( ( ) => "1" , ( ) => b && Promise . resolve ( 1 ) ) ;
144150const p59 = p . then ( ( ) => "1" , ( ) => Promise . reject ( 1 ) ) ;
145151
146152const p60 = p . then ( ( ) => x , undefined ) ;
@@ -152,6 +158,7 @@ const p65 = p.then(() => x, () => null);
152158const p66 = p . then ( ( ) => x , ( ) => { } ) ;
153159const p67 = p . then ( ( ) => x , ( ) => { throw 1 } ) ;
154160const p68 = p . then ( ( ) => x , ( ) => Promise . resolve ( 1 ) ) ;
161+ const p68a = p . then ( ( ) => x , ( ) => b && Promise . resolve ( 1 ) ) ;
155162const p69 = p . then ( ( ) => x , ( ) => Promise . reject ( 1 ) ) ;
156163
157164const p70 = p . then ( ( ) => undefined , undefined ) ;
@@ -163,6 +170,7 @@ const p75 = p.then(() => undefined, () => null);
163170const p76 = p . then ( ( ) => undefined , ( ) => { } ) ;
164171const p77 = p . then ( ( ) => undefined , ( ) => { throw 1 } ) ;
165172const p78 = p . then ( ( ) => undefined , ( ) => Promise . resolve ( 1 ) ) ;
173+ const p78a = p . then ( ( ) => undefined , ( ) => b && Promise . resolve ( 1 ) ) ;
166174const p79 = p . then ( ( ) => undefined , ( ) => Promise . reject ( 1 ) ) ;
167175
168176const p80 = p . then ( ( ) => null , undefined ) ;
@@ -174,6 +182,7 @@ const p85 = p.then(() => null, () => null);
174182const p86 = p . then ( ( ) => null , ( ) => { } ) ;
175183const p87 = p . then ( ( ) => null , ( ) => { throw 1 } ) ;
176184const p88 = p . then ( ( ) => null , ( ) => Promise . resolve ( 1 ) ) ;
185+ const p88a = p . then ( ( ) => null , ( ) => b && Promise . resolve ( 1 ) ) ;
177186const p89 = p . then ( ( ) => null , ( ) => Promise . reject ( 1 ) ) ;
178187
179188const p90 = p . then ( ( ) => { } , undefined ) ;
@@ -185,6 +194,7 @@ const p95 = p.then(() => {}, () => null);
185194const p96 = p . then ( ( ) => { } , ( ) => { } ) ;
186195const p97 = p . then ( ( ) => { } , ( ) => { throw 1 } ) ;
187196const p98 = p . then ( ( ) => { } , ( ) => Promise . resolve ( 1 ) ) ;
197+ const p98a = p . then ( ( ) => { } , ( ) => b && Promise . resolve ( 1 ) ) ;
188198const p99 = p . then ( ( ) => { } , ( ) => Promise . reject ( 1 ) ) ;
189199
190200const pa0 = p . then ( ( ) => { throw 1 } , undefined ) ;
@@ -196,6 +206,7 @@ const pa5 = p.then(() => {throw 1}, () => null);
196206const pa6 = p . then ( ( ) => { throw 1 } , ( ) => { } ) ;
197207const pa7 = p . then ( ( ) => { throw 1 } , ( ) => { throw 1 } ) ;
198208const pa8 = p . then ( ( ) => { throw 1 } , ( ) => Promise . resolve ( 1 ) ) ;
209+ const pa8a = p . then ( ( ) => { throw 1 } , ( ) => b && Promise . resolve ( 1 ) ) ;
199210const pa9 = p . then ( ( ) => { throw 1 } , ( ) => Promise . reject ( 1 ) ) ;
200211
201212const pb0 = p . then ( ( ) => Promise . resolve ( "1" ) , undefined ) ;
@@ -207,6 +218,7 @@ const pb5 = p.then(() => Promise.resolve("1"), () => null);
207218const pb6 = p . then ( ( ) => Promise . resolve ( "1" ) , ( ) => { } ) ;
208219const pb7 = p . then ( ( ) => Promise . resolve ( "1" ) , ( ) => { throw 1 } ) ;
209220const pb8 = p . then ( ( ) => Promise . resolve ( "1" ) , ( ) => Promise . resolve ( 1 ) ) ;
221+ const pb8a = p . then ( ( ) => Promise . resolve ( "1" ) , ( ) => b && Promise . resolve ( 1 ) ) ;
210222const pb9 = p . then ( ( ) => Promise . resolve ( "1" ) , ( ) => Promise . reject ( 1 ) ) ;
211223
212224const pc0 = p . then ( ( ) => Promise . reject ( "1" ) , undefined ) ;
@@ -218,13 +230,15 @@ const pc5 = p.then(() => Promise.reject("1"), () => null);
218230const pc6 = p . then ( ( ) => Promise . reject ( "1" ) , ( ) => { } ) ;
219231const pc7 = p . then ( ( ) => Promise . reject ( "1" ) , ( ) => { throw 1 } ) ;
220232const pc8 = p . then ( ( ) => Promise . reject ( "1" ) , ( ) => Promise . resolve ( 1 ) ) ;
233+ const pc8a = p . then ( ( ) => Promise . reject ( "1" ) , ( ) => b && Promise . resolve ( 1 ) ) ;
221234const pc9 = p . then ( ( ) => Promise . reject ( "1" ) , ( ) => Promise . reject ( 1 ) ) ;
222235
223236Promise . resolve ( undefined as Promise < string > | number ) ;
224237Promise . resolve ( undefined as Promise < Promise < number >> ) ;
225238Promise . resolve ( undefined as string | Promise < Promise < number >> ) ;
226239Promise . 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+
228242
229243//// [promiseType.js]
230244var __awaiter = ( this && this . __awaiter ) || function ( thisArg , _arguments , P , generator ) {
@@ -337,6 +351,7 @@ const p16 = p.catch(() => { });
337351const p17 = p . catch ( ( ) => { throw 1 ; } ) ;
338352const p18 = p . catch ( ( ) => Promise . reject ( 1 ) ) ;
339353const p19 = p . catch ( ( ) => Promise . resolve ( 1 ) ) ;
354+ const p19a = p . catch ( ( ) => b && Promise . resolve ( 1 ) ) ;
340355const p20 = p . then ( undefined ) ;
341356const p21 = p . then ( null ) ;
342357const p22 = p . then ( ( ) => 1 ) ;
@@ -346,6 +361,7 @@ const p25 = p.then(() => null);
346361const p26 = p . then ( ( ) => { } ) ;
347362const p27 = p . then ( ( ) => { throw 1 ; } ) ;
348363const p28 = p . then ( ( ) => Promise . resolve ( 1 ) ) ;
364+ const p28a = p . then ( ( ) => b && Promise . resolve ( 1 ) ) ;
349365const p29 = p . then ( ( ) => Promise . reject ( 1 ) ) ;
350366const p30 = p . then ( undefined , undefined ) ;
351367const p31 = p . then ( undefined , null ) ;
@@ -356,6 +372,7 @@ const p35 = p.then(undefined, () => null);
356372const p36 = p . then ( undefined , ( ) => { } ) ;
357373const p37 = p . then ( undefined , ( ) => { throw 1 ; } ) ;
358374const p38 = p . then ( undefined , ( ) => Promise . resolve ( 1 ) ) ;
375+ const p38a = p . then ( undefined , ( ) => b && Promise . resolve ( 1 ) ) ;
359376const p39 = p . then ( undefined , ( ) => Promise . reject ( 1 ) ) ;
360377const p40 = p . then ( null , undefined ) ;
361378const p41 = p . then ( null , null ) ;
@@ -366,6 +383,7 @@ const p45 = p.then(null, () => null);
366383const p46 = p . then ( null , ( ) => { } ) ;
367384const p47 = p . then ( null , ( ) => { throw 1 ; } ) ;
368385const p48 = p . then ( null , ( ) => Promise . resolve ( 1 ) ) ;
386+ const p48a = p . then ( null , ( ) => b && Promise . resolve ( 1 ) ) ;
369387const p49 = p . then ( null , ( ) => Promise . reject ( 1 ) ) ;
370388const p50 = p . then ( ( ) => "1" , undefined ) ;
371389const p51 = p . then ( ( ) => "1" , null ) ;
@@ -376,6 +394,7 @@ const p55 = p.then(() => "1", () => null);
376394const p56 = p . then ( ( ) => "1" , ( ) => { } ) ;
377395const p57 = p . then ( ( ) => "1" , ( ) => { throw 1 ; } ) ;
378396const p58 = p . then ( ( ) => "1" , ( ) => Promise . resolve ( 1 ) ) ;
397+ const p58a = p . then ( ( ) => "1" , ( ) => b && Promise . resolve ( 1 ) ) ;
379398const p59 = p . then ( ( ) => "1" , ( ) => Promise . reject ( 1 ) ) ;
380399const p60 = p . then ( ( ) => x , undefined ) ;
381400const p61 = p . then ( ( ) => x , null ) ;
@@ -386,6 +405,7 @@ const p65 = p.then(() => x, () => null);
386405const p66 = p . then ( ( ) => x , ( ) => { } ) ;
387406const p67 = p . then ( ( ) => x , ( ) => { throw 1 ; } ) ;
388407const p68 = p . then ( ( ) => x , ( ) => Promise . resolve ( 1 ) ) ;
408+ const p68a = p . then ( ( ) => x , ( ) => b && Promise . resolve ( 1 ) ) ;
389409const p69 = p . then ( ( ) => x , ( ) => Promise . reject ( 1 ) ) ;
390410const p70 = p . then ( ( ) => undefined , undefined ) ;
391411const p71 = p . then ( ( ) => undefined , null ) ;
@@ -396,6 +416,7 @@ const p75 = p.then(() => undefined, () => null);
396416const p76 = p . then ( ( ) => undefined , ( ) => { } ) ;
397417const p77 = p . then ( ( ) => undefined , ( ) => { throw 1 ; } ) ;
398418const p78 = p . then ( ( ) => undefined , ( ) => Promise . resolve ( 1 ) ) ;
419+ const p78a = p . then ( ( ) => undefined , ( ) => b && Promise . resolve ( 1 ) ) ;
399420const p79 = p . then ( ( ) => undefined , ( ) => Promise . reject ( 1 ) ) ;
400421const p80 = p . then ( ( ) => null , undefined ) ;
401422const p81 = p . then ( ( ) => null , null ) ;
@@ -406,6 +427,7 @@ const p85 = p.then(() => null, () => null);
406427const p86 = p . then ( ( ) => null , ( ) => { } ) ;
407428const p87 = p . then ( ( ) => null , ( ) => { throw 1 ; } ) ;
408429const p88 = p . then ( ( ) => null , ( ) => Promise . resolve ( 1 ) ) ;
430+ const p88a = p . then ( ( ) => null , ( ) => b && Promise . resolve ( 1 ) ) ;
409431const p89 = p . then ( ( ) => null , ( ) => Promise . reject ( 1 ) ) ;
410432const p90 = p . then ( ( ) => { } , undefined ) ;
411433const p91 = p . then ( ( ) => { } , null ) ;
@@ -416,6 +438,7 @@ const p95 = p.then(() => { }, () => null);
416438const p96 = p . then ( ( ) => { } , ( ) => { } ) ;
417439const p97 = p . then ( ( ) => { } , ( ) => { throw 1 ; } ) ;
418440const p98 = p . then ( ( ) => { } , ( ) => Promise . resolve ( 1 ) ) ;
441+ const p98a = p . then ( ( ) => { } , ( ) => b && Promise . resolve ( 1 ) ) ;
419442const p99 = p . then ( ( ) => { } , ( ) => Promise . reject ( 1 ) ) ;
420443const pa0 = p . then ( ( ) => { throw 1 ; } , undefined ) ;
421444const pa1 = p . then ( ( ) => { throw 1 ; } , null ) ;
@@ -426,6 +449,7 @@ const pa5 = p.then(() => { throw 1; }, () => null);
426449const pa6 = p . then ( ( ) => { throw 1 ; } , ( ) => { } ) ;
427450const pa7 = p . then ( ( ) => { throw 1 ; } , ( ) => { throw 1 ; } ) ;
428451const pa8 = p . then ( ( ) => { throw 1 ; } , ( ) => Promise . resolve ( 1 ) ) ;
452+ const pa8a = p . then ( ( ) => { throw 1 ; } , ( ) => b && Promise . resolve ( 1 ) ) ;
429453const pa9 = p . then ( ( ) => { throw 1 ; } , ( ) => Promise . reject ( 1 ) ) ;
430454const pb0 = p . then ( ( ) => Promise . resolve ( "1" ) , undefined ) ;
431455const pb1 = p . then ( ( ) => Promise . resolve ( "1" ) , null ) ;
@@ -436,6 +460,7 @@ const pb5 = p.then(() => Promise.resolve("1"), () => null);
436460const pb6 = p . then ( ( ) => Promise . resolve ( "1" ) , ( ) => { } ) ;
437461const pb7 = p . then ( ( ) => Promise . resolve ( "1" ) , ( ) => { throw 1 ; } ) ;
438462const pb8 = p . then ( ( ) => Promise . resolve ( "1" ) , ( ) => Promise . resolve ( 1 ) ) ;
463+ const pb8a = p . then ( ( ) => Promise . resolve ( "1" ) , ( ) => b && Promise . resolve ( 1 ) ) ;
439464const pb9 = p . then ( ( ) => Promise . resolve ( "1" ) , ( ) => Promise . reject ( 1 ) ) ;
440465const pc0 = p . then ( ( ) => Promise . reject ( "1" ) , undefined ) ;
441466const pc1 = p . then ( ( ) => Promise . reject ( "1" ) , null ) ;
@@ -446,6 +471,7 @@ const pc5 = p.then(() => Promise.reject("1"), () => null);
446471const pc6 = p . then ( ( ) => Promise . reject ( "1" ) , ( ) => { } ) ;
447472const pc7 = p . then ( ( ) => Promise . reject ( "1" ) , ( ) => { throw 1 ; } ) ;
448473const pc8 = p . then ( ( ) => Promise . reject ( "1" ) , ( ) => Promise . resolve ( 1 ) ) ;
474+ const pc8a = p . then ( ( ) => Promise . reject ( "1" ) , ( ) => b && Promise . resolve ( 1 ) ) ;
449475const pc9 = p . then ( ( ) => Promise . reject ( "1" ) , ( ) => Promise . reject ( 1 ) ) ;
450476Promise . resolve ( undefined ) ;
451477Promise . resolve ( undefined ) ;
0 commit comments