TypeScript/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithExport.types

36 lines
1.7 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/internalAliasClassInsideTopLevelModuleWithExport.ts ===
export module x {
2015-04-13 23:01:57 +02:00
>x : typeof x, Symbol(x, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 0, 0))
2014-08-15 23:33:16 +02:00
export class c {
2015-04-13 23:01:57 +02:00
>c : c, Symbol(c, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 0, 17))
2014-08-15 23:33:16 +02:00
foo(a: number) {
2015-04-13 23:01:57 +02:00
>foo : (a: number) => number, Symbol(foo, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 1, 20))
>a : number, Symbol(a, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 2, 12))
2014-08-15 23:33:16 +02:00
return a;
2015-04-13 23:01:57 +02:00
>a : number, Symbol(a, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 2, 12))
2014-08-15 23:33:16 +02:00
}
}
}
export import xc = x.c;
2015-04-13 23:01:57 +02:00
>xc : typeof xc, Symbol(xc, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 6, 1))
>x : typeof x, Symbol(x, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 0, 0))
>c : xc, Symbol(xc, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 0, 17))
2014-08-15 23:33:16 +02:00
export var cProp = new xc();
2015-04-13 23:01:57 +02:00
>cProp : xc, Symbol(cProp, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 9, 10))
2014-08-25 19:36:12 +02:00
>new xc() : xc
2015-04-13 23:01:57 +02:00
>xc : typeof xc, Symbol(xc, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 6, 1))
2014-08-15 23:33:16 +02:00
var cReturnVal = cProp.foo(10);
2015-04-13 23:01:57 +02:00
>cReturnVal : number, Symbol(cReturnVal, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 10, 3))
2014-08-15 23:33:16 +02:00
>cProp.foo(10) : number
2015-04-13 23:01:57 +02:00
>cProp.foo : (a: number) => number, Symbol(xc.foo, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 1, 20))
>cProp : xc, Symbol(cProp, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 9, 10))
>foo : (a: number) => number, Symbol(xc.foo, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 1, 20))
2015-04-13 21:36:11 +02:00
>10 : number
2014-08-15 23:33:16 +02:00