|
1 | 1 | === tests/cases/compiler/main.ts ===
|
| 2 | +// https://github.com/Microsoft/TypeScript/issues/11177 |
2 | 3 | import * as Bluebird from 'bluebird';
|
3 |
| ->Bluebird : Symbol(Bluebird, Decl(main.ts, 0, 6)) |
| 4 | +>Bluebird : Symbol(Bluebird, Decl(main.ts, 1, 6)) |
4 | 5 |
|
5 | 6 | async function a(): Bluebird<void> {
|
6 |
| ->a : Symbol(a, Decl(main.ts, 0, 37)) |
7 |
| ->Bluebird : Symbol(Bluebird, Decl(main.ts, 0, 6)) |
| 7 | +>a : Symbol(a, Decl(main.ts, 1, 37)) |
| 8 | +>Bluebird : Symbol(Bluebird, Decl(main.ts, 1, 6)) |
8 | 9 |
|
9 | 10 | try {
|
10 | 11 | const b = async function b(): Bluebird<void> {
|
11 |
| ->b : Symbol(b, Decl(main.ts, 3, 9)) |
12 |
| ->b : Symbol(b, Decl(main.ts, 3, 13)) |
13 |
| ->Bluebird : Symbol(Bluebird, Decl(main.ts, 0, 6)) |
| 12 | +>b : Symbol(b, Decl(main.ts, 4, 9)) |
| 13 | +>b : Symbol(b, Decl(main.ts, 4, 13)) |
| 14 | +>Bluebird : Symbol(Bluebird, Decl(main.ts, 1, 6)) |
14 | 15 |
|
15 | 16 | try {
|
16 | 17 | await Bluebird.resolve(); // -- remove this and it compiles
|
17 | 18 | >Bluebird.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --))
|
18 |
| ->Bluebird : Symbol(Bluebird, Decl(main.ts, 0, 6)) |
| 19 | +>Bluebird : Symbol(Bluebird, Decl(main.ts, 1, 6)) |
19 | 20 | >resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --))
|
20 | 21 |
|
21 | 22 | } catch (error) { }
|
22 |
| ->error : Symbol(error, Decl(main.ts, 6, 15)) |
| 23 | +>error : Symbol(error, Decl(main.ts, 7, 15)) |
23 | 24 |
|
24 | 25 | };
|
25 | 26 |
|
26 | 27 | await b(); // -- or remove this and it compiles
|
27 |
| ->b : Symbol(b, Decl(main.ts, 3, 9)) |
| 28 | +>b : Symbol(b, Decl(main.ts, 4, 9)) |
28 | 29 |
|
29 | 30 | } catch (error) { }
|
30 |
| ->error : Symbol(error, Decl(main.ts, 10, 11)) |
| 31 | +>error : Symbol(error, Decl(main.ts, 11, 11)) |
31 | 32 | }
|
32 | 33 |
|
33 | 34 | === tests/cases/compiler/bluebird.d.ts ===
|
|
0 commit comments