TypeScript/tests/baselines/reference/collisionCodeGenModuleWithModuleReopening.types
2015-04-15 16:44:20 -07:00

95 lines
1.4 KiB
Plaintext

=== 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 : number
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