@@ -1089,3 +1089,55 @@ 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+ // #33074
1113+
1114+ Promise.resolve(x2);
1115+ >Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --))
1116+ >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, --, --))
1117+ >resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --))
1118+ >x2 : Symbol(x2, Decl(promiseType.ts, 223, 13))
1119+
1120+ // #33062
1121+
1122+ declare function f1(resolve: (value: Promise<number> | string) => void);
1123+ >f1 : Symbol(f1, Decl(promiseType.ts, 231, 20))
1124+ >resolve : Symbol(resolve, Decl(promiseType.ts, 235, 20))
1125+ >value : Symbol(value, Decl(promiseType.ts, 235, 30))
1126+ >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, --, --))
1127+
1128+ new Promise(f1);
1129+ >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, --, --))
1130+ >f1 : Symbol(f1, Decl(promiseType.ts, 231, 20))
1131+
1132+ // #30390
1133+
1134+ declare function f2(): Promise<number> | string;
1135+ >f2 : Symbol(f2, Decl(promiseType.ts, 236, 16))
1136+ >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, --, --))
1137+
1138+ p.then(f2);
1139+ >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --))
1140+ >p : Symbol(p, Decl(promiseType.ts, 0, 11))
1141+ >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --))
1142+ >f2 : Symbol(f2, Decl(promiseType.ts, 236, 16))
1143+
0 commit comments