TypeScript/tests/baselines/reference/internalAliasVarInsideTopLevelModuleWithExport.types

20 lines
818 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/internalAliasVarInsideTopLevelModuleWithExport.ts ===
export module a {
2015-04-13 23:01:57 +02:00
>a : typeof a, Symbol(a, Decl(internalAliasVarInsideTopLevelModuleWithExport.ts, 0, 0))
2014-08-15 23:33:16 +02:00
export var x = 10;
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(internalAliasVarInsideTopLevelModuleWithExport.ts, 1, 14))
2015-04-13 21:36:11 +02:00
>10 : number
2014-08-15 23:33:16 +02:00
}
export import b = a.x;
2015-04-13 23:01:57 +02:00
>b : number, Symbol(b, Decl(internalAliasVarInsideTopLevelModuleWithExport.ts, 2, 1))
>a : typeof a, Symbol(a, Decl(internalAliasVarInsideTopLevelModuleWithExport.ts, 0, 0))
>x : number, Symbol(b, Decl(internalAliasVarInsideTopLevelModuleWithExport.ts, 1, 14))
2014-08-15 23:33:16 +02:00
export var bVal = b;
2015-04-13 23:01:57 +02:00
>bVal : number, Symbol(bVal, Decl(internalAliasVarInsideTopLevelModuleWithExport.ts, 5, 10))
>b : number, Symbol(b, Decl(internalAliasVarInsideTopLevelModuleWithExport.ts, 2, 1))
2014-08-15 23:33:16 +02:00