2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/internalAliasClassInsideLocalModuleWithExport.ts ===
|
|
|
|
export module x {
|
2015-04-16 01:44:20 +02:00
|
|
|
>x : typeof x
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export class c {
|
2015-04-16 01:44:20 +02:00
|
|
|
>c : c
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
foo(a: number) {
|
2015-04-16 01:44:20 +02:00
|
|
|
>foo : (a: number) => number
|
|
|
|
>a : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
return a;
|
2015-04-16 01:44:20 +02:00
|
|
|
>a : number
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export module m2 {
|
2015-04-16 01:44:20 +02:00
|
|
|
>m2 : typeof m2
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export module m3 {
|
2015-04-16 01:44:20 +02:00
|
|
|
>m3 : typeof m3
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export import c = x.c;
|
2015-04-16 01:44:20 +02:00
|
|
|
>c : typeof c
|
|
|
|
>x : typeof x
|
|
|
|
>c : c
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var cProp = new c();
|
2015-04-16 01:44:20 +02:00
|
|
|
>cProp : c
|
2014-08-15 23:33:16 +02:00
|
|
|
>new c() : c
|
2015-04-16 01:44:20 +02:00
|
|
|
>c : typeof c
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var cReturnVal = cProp.foo(10);
|
2015-04-16 01:44:20 +02:00
|
|
|
>cReturnVal : number
|
2014-08-15 23:33:16 +02:00
|
|
|
>cProp.foo(10) : number
|
2015-04-16 01:44:20 +02:00
|
|
|
>cProp.foo : (a: number) => number
|
|
|
|
>cProp : c
|
|
|
|
>foo : (a: number) => number
|
2015-04-13 21:36:11 +02:00
|
|
|
>10 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export var d = new m2.m3.c();
|
2015-04-16 01:44:20 +02:00
|
|
|
>d : x.c
|
2014-08-25 19:36:12 +02:00
|
|
|
>new m2.m3.c() : x.c
|
2015-04-16 01:44:20 +02:00
|
|
|
>m2.m3.c : typeof x.c
|
|
|
|
>m2.m3 : typeof m2.m3
|
|
|
|
>m2 : typeof m2
|
|
|
|
>m3 : typeof m2.m3
|
|
|
|
>c : typeof x.c
|
2014-08-15 23:33:16 +02:00
|
|
|
|