TypeScript/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithoutExport.types
2014-08-15 14:37:48 -07:00

35 lines
570 B
Plaintext

=== tests/cases/compiler/internalAliasClassInsideTopLevelModuleWithoutExport.ts ===
export module x {
>x : typeof x
export class c {
>c : c
foo(a: number) {
>foo : (a: number) => number
>a : number
return a;
>a : number
}
}
}
import xc = x.c;
>xc : typeof c
>x : c
>c : c
export var cProp = new xc();
>cProp : c
>new xc() : c
>xc : typeof c
var cReturnVal = cProp.foo(10);
>cReturnVal : number
>cProp.foo(10) : number
>cProp.foo : (a: number) => number
>cProp : c
>foo : (a: number) => number