@@ -1089,3 +1089,47 @@ const pc9 = p.then(() => Promise.reject("1"), () => Promise.reject(1));
1089
1089
>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, --, --))
1090
1090
>reject : Symbol(PromiseConstructor.reject, Decl(lib.es2015.promise.d.ts, --, --))
1091
1091
1092
+ declare const x2: Promise<number> | string;
1093
+ >x2 : Symbol(x2, Decl(promiseType.ts, 219, 13))
1094
+ >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, --, --))
1095
+
1096
+ // #28427
1097
+
1098
+ Promise.all([x2]);
1099
+ >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)
1100
+ >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, --, --))
1101
+ >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)
1102
+ >x2 : Symbol(x2, Decl(promiseType.ts, 219, 13))
1103
+
1104
+ // #33074
1105
+
1106
+ Promise.resolve(x2);
1107
+ >Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --))
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
+ >resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --))
1110
+ >x2 : Symbol(x2, Decl(promiseType.ts, 219, 13))
1111
+
1112
+ // #30390
1113
+
1114
+ declare function f1(): Promise<number> | string;
1115
+ >f1 : Symbol(f1, Decl(promiseType.ts, 227, 20))
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
+
1118
+ p.then(f1);
1119
+ >p.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --))
1120
+ >p : Symbol(p, Decl(promiseType.ts, 0, 11))
1121
+ >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --))
1122
+ >f1 : Symbol(f1, Decl(promiseType.ts, 227, 20))
1123
+
1124
+ // #33062
1125
+
1126
+ declare function f2(resolve: (value: Promise<number> | string) => void);
1127
+ >f2 : Symbol(f2, Decl(promiseType.ts, 232, 11))
1128
+ >resolve : Symbol(resolve, Decl(promiseType.ts, 236, 20))
1129
+ >value : Symbol(value, Decl(promiseType.ts, 236, 30))
1130
+ >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, --, --))
1131
+
1132
+ new Promise(f2);
1133
+ >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, --, --))
1134
+ >f2 : Symbol(f2, Decl(promiseType.ts, 232, 11))
1135
+
0 commit comments