TypeScript/tests/baselines/reference/internalAliasFunctionInsideLocalModuleWithExport.types

33 lines
1.5 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/internalAliasFunctionInsideLocalModuleWithExport.ts ===
export module a {
2015-04-13 23:01:57 +02:00
>a : typeof a, Symbol(a, Decl(internalAliasFunctionInsideLocalModuleWithExport.ts, 0, 0))
2014-08-15 23:33:16 +02:00
export function foo(x: number) {
2015-04-13 23:01:57 +02:00
>foo : (x: number) => number, Symbol(foo, Decl(internalAliasFunctionInsideLocalModuleWithExport.ts, 0, 17))
>x : number, Symbol(x, Decl(internalAliasFunctionInsideLocalModuleWithExport.ts, 1, 24))
2014-08-15 23:33:16 +02:00
return x;
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(internalAliasFunctionInsideLocalModuleWithExport.ts, 1, 24))
2014-08-15 23:33:16 +02:00
}
}
export module c {
2015-04-13 23:01:57 +02:00
>c : typeof c, Symbol(c, Decl(internalAliasFunctionInsideLocalModuleWithExport.ts, 4, 1))
2014-08-15 23:33:16 +02:00
export import b = a.foo;
2015-04-13 23:01:57 +02:00
>b : (x: number) => number, Symbol(b, Decl(internalAliasFunctionInsideLocalModuleWithExport.ts, 6, 17))
>a : typeof a, Symbol(a, Decl(internalAliasFunctionInsideLocalModuleWithExport.ts, 0, 0))
>foo : (x: number) => number, Symbol(b, Decl(internalAliasFunctionInsideLocalModuleWithExport.ts, 0, 17))
2014-08-15 23:33:16 +02:00
export var bVal = b(10);
2015-04-13 23:01:57 +02:00
>bVal : number, Symbol(bVal, Decl(internalAliasFunctionInsideLocalModuleWithExport.ts, 8, 14))
2014-08-15 23:33:16 +02:00
>b(10) : number
2015-04-13 23:01:57 +02:00
>b : (x: number) => number, Symbol(b, Decl(internalAliasFunctionInsideLocalModuleWithExport.ts, 6, 17))
2015-04-13 21:36:11 +02:00
>10 : number
2014-08-15 23:33:16 +02:00
export var bVal2 = b;
2015-04-13 23:01:57 +02:00
>bVal2 : (x: number) => number, Symbol(bVal2, Decl(internalAliasFunctionInsideLocalModuleWithExport.ts, 9, 14))
>b : (x: number) => number, Symbol(b, Decl(internalAliasFunctionInsideLocalModuleWithExport.ts, 6, 17))
2014-08-15 23:33:16 +02:00
}