|
| 1 | +=== tests/cases/compiler/foo.d.ts === |
| 2 | + |
| 3 | +declare module "foo" { |
| 4 | + export class Foo { |
| 5 | +>Foo : Symbol(Foo, Decl(foo.d.ts, 1, 22), Decl(foo-ext.d.ts, 0, 22)) |
| 6 | + |
| 7 | + constructor(); |
| 8 | + method1(): any; |
| 9 | +>method1 : Symbol(method1, Decl(foo.d.ts, 3, 22)) |
| 10 | + } |
| 11 | +} |
| 12 | + |
| 13 | +=== tests/cases/compiler/foo-ext.d.ts === |
| 14 | +declare module "foo" { |
| 15 | + export interface Foo { |
| 16 | +>Foo : Symbol(Foo, Decl(foo.d.ts, 1, 22), Decl(foo-ext.d.ts, 0, 22)) |
| 17 | + |
| 18 | + method2(): any; |
| 19 | +>method2 : Symbol(method2, Decl(foo-ext.d.ts, 1, 26)) |
| 20 | + } |
| 21 | +} |
| 22 | + |
| 23 | +=== tests/cases/compiler/index.ts === |
| 24 | +import * as foo from "foo"; |
| 25 | +>foo : Symbol(foo, Decl(index.ts, 0, 6)) |
| 26 | + |
| 27 | +class Test { |
| 28 | +>Test : Symbol(Test, Decl(index.ts, 0, 27)) |
| 29 | + |
| 30 | + bar: foo.Foo; |
| 31 | +>bar : Symbol(bar, Decl(index.ts, 2, 12)) |
| 32 | +>foo : Symbol(foo, Decl(index.ts, 0, 6)) |
| 33 | +>Foo : Symbol(foo.Foo, Decl(foo.d.ts, 1, 22), Decl(foo-ext.d.ts, 0, 22)) |
| 34 | + |
| 35 | + constructor() { |
| 36 | + this.bar = new foo.Foo(); |
| 37 | +>this.bar : Symbol(bar, Decl(index.ts, 2, 12)) |
| 38 | +>this : Symbol(Test, Decl(index.ts, 0, 27)) |
| 39 | +>bar : Symbol(bar, Decl(index.ts, 2, 12)) |
| 40 | +>foo.Foo : Symbol(foo.Foo, Decl(foo.d.ts, 1, 22), Decl(foo-ext.d.ts, 0, 22)) |
| 41 | +>foo : Symbol(foo, Decl(index.ts, 0, 6)) |
| 42 | +>Foo : Symbol(foo.Foo, Decl(foo.d.ts, 1, 22), Decl(foo-ext.d.ts, 0, 22)) |
| 43 | + } |
| 44 | +} |
| 45 | + |
0 commit comments