@@ -1089,3 +1089,51 @@ const pc9 = p.then(() => Promise.reject("1"), () => Promise.reject(1));
10891089>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
10901090>reject : Symbol(PromiseConstructor.reject, Decl(lib.es2015.promise.d.ts, --, --))
10911091
1092+ // #27711
1093+ 
1094+ const p2: Promise<number> = new Promise<Promise<number>>(() => {});
1095+ >p2 : Symbol(p2, Decl(promiseType.ts, 221, 5))
1096+ >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
1097+ >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
1098+ >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
1099+ 
1100+ declare const x2: Promise<number> | string;
1101+ >x2 : Symbol(x2, Decl(promiseType.ts, 223, 13))
1102+ >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
1103+ 
1104+ // #28427
1105+ 
1106+ Promise.all([x2]);
1107+ >Promise.all : Symbol(PromiseConstructor.all, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --) ... and 6 more)
1108+ >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
1109+ >all : Symbol(PromiseConstructor.all, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --) ... and 6 more)
1110+ >x2 : Symbol(x2, Decl(promiseType.ts, 223, 13))
1111+ 
1112+ Promise.resolve(x2);
1113+ >Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --))
1114+ >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
1115+ >resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --))
1116+ >x2 : Symbol(x2, Decl(promiseType.ts, 223, 13))
1117+ 
1118+ declare function f1(resolve: (value: Promise<number> | string) => void);
1119+ >f1 : Symbol(f1, Decl(promiseType.ts, 229, 20))
1120+ >resolve : Symbol(resolve, Decl(promiseType.ts, 231, 20))
1121+ >value : Symbol(value, Decl(promiseType.ts, 231, 30))
1122+ >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
1123+ 
1124+ new Promise(f1);
1125+ >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
1126+ >f1 : Symbol(f1, Decl(promiseType.ts, 229, 20))
1127+ 
1128+ // #30390
1129+ 
1130+ declare function f2(): Promise<number> | string;
1131+ >f2 : Symbol(f2, Decl(promiseType.ts, 232, 16))
1132+ >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
1133+ 
1134+ p.then(f2);
1135+ >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --))
1136+ >p : Symbol(p, Decl(promiseType.ts, 0, 11))
1137+ >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --))
1138+ >f2 : Symbol(f2, Decl(promiseType.ts, 232, 16))
1139+ 
0 commit comments