1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
|
=== tests/cases/compiler/collisionCodeGenModuleWithModuleReopening.ts ===
module m1 {
>m1 : typeof m1
export class m1 {
>m1 : m1
}
}
var foo = new m1.m1();
>foo : m1.m1
>new m1.m1() : m1.m1
>m1.m1 : typeof m1.m1
>m1 : typeof m1
>m1 : typeof m1.m1
module m1 {
>m1 : typeof m1
export class c1 {
>c1 : c1
}
var b = new c1();
>b : c1
>new c1() : c1
>c1 : typeof c1
var c = new m1();
>c : m1
>new m1() : m1
>m1 : typeof m1
}
var foo2 = new m1.c1();
>foo2 : m1.c1
>new m1.c1() : m1.c1
>m1.c1 : typeof m1.c1
>m1 : typeof m1
>c1 : typeof m1.c1
module m2 {
>m2 : typeof m2
export class c1 {
>c1 : c1
}
export var b10 = 10;
>b10 : number
>10 : 10
var x = new c1();
>x : c1
>new c1() : c1
>c1 : typeof c1
}
var foo3 = new m2.c1();
>foo3 : m2.c1
>new m2.c1() : m2.c1
>m2.c1 : typeof m2.c1
>m2 : typeof m2
>c1 : typeof m2.c1
module m2 {
>m2 : typeof m2
export class m2 {
>m2 : m2
}
var b = new m2();
>b : m2
>new m2() : m2
>m2 : typeof m2
var d = b10;
>d : number
>b10 : number
var c = new c1();
>c : c1
>new c1() : c1
>c1 : typeof c1
}
var foo3 = new m2.c1();
>foo3 : m2.c1
>new m2.c1() : m2.c1
>m2.c1 : typeof m2.c1
>m2 : typeof m2
>c1 : typeof m2.c1
var foo2 = new m2.m2();
>foo2 : m1.c1
>new m2.m2() : m2.m2
>m2.m2 : typeof m2.m2
>m2 : typeof m2
>m2 : typeof m2.m2
|