2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/collisionCodeGenModuleWithModuleReopening.ts ===
|
|
|
|
module m1 {
|
2014-08-28 21:40:58 +02:00
|
|
|
>m1 : typeof m1
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export class m1 {
|
|
|
|
>m1 : m1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var foo = new m1.m1();
|
2014-08-25 19:36:12 +02:00
|
|
|
>foo : m1.m1
|
|
|
|
>new m1.m1() : m1.m1
|
|
|
|
>m1.m1 : typeof m1.m1
|
2014-08-15 23:33:16 +02:00
|
|
|
>m1 : typeof m1
|
2014-08-25 19:36:12 +02:00
|
|
|
>m1 : typeof m1.m1
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
module m1 {
|
2014-08-28 21:40:58 +02:00
|
|
|
>m1 : typeof m1
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
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();
|
2014-08-25 19:36:12 +02:00
|
|
|
>foo2 : m1.c1
|
|
|
|
>new m1.c1() : m1.c1
|
|
|
|
>m1.c1 : typeof m1.c1
|
2014-08-15 23:33:16 +02:00
|
|
|
>m1 : typeof m1
|
2014-08-25 19:36:12 +02:00
|
|
|
>c1 : typeof m1.c1
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
module m2 {
|
2014-08-28 21:40:58 +02:00
|
|
|
>m2 : typeof m2
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export class c1 {
|
|
|
|
>c1 : c1
|
|
|
|
}
|
|
|
|
export var b10 = 10;
|
|
|
|
>b10 : number
|
|
|
|
|
|
|
|
var x = new c1();
|
|
|
|
>x : c1
|
|
|
|
>new c1() : c1
|
|
|
|
>c1 : typeof c1
|
|
|
|
}
|
|
|
|
var foo3 = new m2.c1();
|
2014-08-25 19:36:12 +02:00
|
|
|
>foo3 : m2.c1
|
|
|
|
>new m2.c1() : m2.c1
|
|
|
|
>m2.c1 : typeof m2.c1
|
2014-08-15 23:33:16 +02:00
|
|
|
>m2 : typeof m2
|
2014-08-25 19:36:12 +02:00
|
|
|
>c1 : typeof m2.c1
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
module m2 {
|
2014-08-28 21:40:58 +02:00
|
|
|
>m2 : typeof m2
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
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();
|
2014-08-25 19:36:12 +02:00
|
|
|
>foo3 : m2.c1
|
|
|
|
>new m2.c1() : m2.c1
|
|
|
|
>m2.c1 : typeof m2.c1
|
2014-08-15 23:33:16 +02:00
|
|
|
>m2 : typeof m2
|
2014-08-25 19:36:12 +02:00
|
|
|
>c1 : typeof m2.c1
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var foo2 = new m2.m2();
|
2014-08-25 19:36:12 +02:00
|
|
|
>foo2 : m1.c1
|
|
|
|
>new m2.m2() : m2.m2
|
|
|
|
>m2.m2 : typeof m2.m2
|
2014-08-15 23:33:16 +02:00
|
|
|
>m2 : typeof m2
|
2014-08-25 19:36:12 +02:00
|
|
|
>m2 : typeof m2.m2
|
2014-08-15 23:33:16 +02:00
|
|
|
|