diff --git a/tests/baselines/reference/transformNestedGeneratorsWithTry.js b/tests/baselines/reference/transformNestedGeneratorsWithTry.js index 55dc8bb655844..4ad1b2b7e88e1 100644 --- a/tests/baselines/reference/transformNestedGeneratorsWithTry.js +++ b/tests/baselines/reference/transformNestedGeneratorsWithTry.js @@ -1,6 +1,7 @@ //// [tests/cases/compiler/transformNestedGeneratorsWithTry.ts] //// //// [main.ts] +// https://github.com/Microsoft/TypeScript/issues/11177 import * as Bluebird from 'bluebird'; async function a(): Bluebird { try { @@ -58,6 +59,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; +// https://github.com/Microsoft/TypeScript/issues/11177 var Bluebird = require("bluebird"); function a() { return __awaiter(this, void 0, Bluebird, function () { diff --git a/tests/baselines/reference/transformNestedGeneratorsWithTry.symbols b/tests/baselines/reference/transformNestedGeneratorsWithTry.symbols index 4713b682ff39f..e966202c2777a 100644 --- a/tests/baselines/reference/transformNestedGeneratorsWithTry.symbols +++ b/tests/baselines/reference/transformNestedGeneratorsWithTry.symbols @@ -1,33 +1,34 @@ === tests/cases/compiler/main.ts === +// https://github.com/Microsoft/TypeScript/issues/11177 import * as Bluebird from 'bluebird'; ->Bluebird : Symbol(Bluebird, Decl(main.ts, 0, 6)) +>Bluebird : Symbol(Bluebird, Decl(main.ts, 1, 6)) async function a(): Bluebird { ->a : Symbol(a, Decl(main.ts, 0, 37)) ->Bluebird : Symbol(Bluebird, Decl(main.ts, 0, 6)) +>a : Symbol(a, Decl(main.ts, 1, 37)) +>Bluebird : Symbol(Bluebird, Decl(main.ts, 1, 6)) try { const b = async function b(): Bluebird { ->b : Symbol(b, Decl(main.ts, 3, 9)) ->b : Symbol(b, Decl(main.ts, 3, 13)) ->Bluebird : Symbol(Bluebird, Decl(main.ts, 0, 6)) +>b : Symbol(b, Decl(main.ts, 4, 9)) +>b : Symbol(b, Decl(main.ts, 4, 13)) +>Bluebird : Symbol(Bluebird, Decl(main.ts, 1, 6)) try { await Bluebird.resolve(); // -- remove this and it compiles >Bluebird.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) ->Bluebird : Symbol(Bluebird, Decl(main.ts, 0, 6)) +>Bluebird : Symbol(Bluebird, Decl(main.ts, 1, 6)) >resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) } catch (error) { } ->error : Symbol(error, Decl(main.ts, 6, 15)) +>error : Symbol(error, Decl(main.ts, 7, 15)) }; await b(); // -- or remove this and it compiles ->b : Symbol(b, Decl(main.ts, 3, 9)) +>b : Symbol(b, Decl(main.ts, 4, 9)) } catch (error) { } ->error : Symbol(error, Decl(main.ts, 10, 11)) +>error : Symbol(error, Decl(main.ts, 11, 11)) } === tests/cases/compiler/bluebird.d.ts === diff --git a/tests/baselines/reference/transformNestedGeneratorsWithTry.types b/tests/baselines/reference/transformNestedGeneratorsWithTry.types index 25198b98adf1d..3e4ef3f0852cf 100644 --- a/tests/baselines/reference/transformNestedGeneratorsWithTry.types +++ b/tests/baselines/reference/transformNestedGeneratorsWithTry.types @@ -1,4 +1,5 @@ === tests/cases/compiler/main.ts === +// https://github.com/Microsoft/TypeScript/issues/11177 import * as Bluebird from 'bluebird'; >Bluebird : PromiseConstructor