TypeScript/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithoutExport.types

36 lines
597 B
Plaintext
Raw Normal View History

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