2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/internalAliasClassInsideTopLevelModuleWithExport.ts ===
|
|
|
|
export module x {
|
2014-08-28 21:40:58 +02:00
|
|
|
>x : typeof x
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export class c {
|
|
|
|
>c : c
|
|
|
|
|
|
|
|
foo(a: number) {
|
|
|
|
>foo : (a: number) => number
|
|
|
|
>a : number
|
|
|
|
|
|
|
|
return a;
|
|
|
|
>a : number
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export import xc = x.c;
|
2014-08-28 21:40:58 +02:00
|
|
|
>xc : typeof xc
|
2014-08-19 04:56:03 +02:00
|
|
|
>x : typeof x
|
2014-08-25 19:36:12 +02:00
|
|
|
>c : xc
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var cProp = new xc();
|
2014-08-25 19:36:12 +02:00
|
|
|
>cProp : xc
|
|
|
|
>new xc() : xc
|
|
|
|
>xc : typeof xc
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var cReturnVal = cProp.foo(10);
|
|
|
|
>cReturnVal : number
|
|
|
|
>cProp.foo(10) : number
|
|
|
|
>cProp.foo : (a: number) => number
|
2014-08-25 19:36:12 +02:00
|
|
|
>cProp : xc
|
2014-08-15 23:33:16 +02:00
|
|
|
>foo : (a: number) => number
|
|
|
|
|