30 lines
920 B
Text
30 lines
920 B
Text
=== tests/cases/compiler/internalAliasFunction.ts ===
|
|
module a {
|
|
>a : Symbol(a, Decl(internalAliasFunction.ts, 0, 0))
|
|
|
|
export function foo(x: number) {
|
|
>foo : Symbol(foo, Decl(internalAliasFunction.ts, 0, 10))
|
|
>x : Symbol(x, Decl(internalAliasFunction.ts, 1, 24))
|
|
|
|
return x;
|
|
>x : Symbol(x, Decl(internalAliasFunction.ts, 1, 24))
|
|
}
|
|
}
|
|
|
|
module c {
|
|
>c : Symbol(c, Decl(internalAliasFunction.ts, 4, 1))
|
|
|
|
import b = a.foo;
|
|
>b : Symbol(b, Decl(internalAliasFunction.ts, 6, 10))
|
|
>a : Symbol(a, Decl(internalAliasFunction.ts, 0, 0))
|
|
>foo : Symbol(b, Decl(internalAliasFunction.ts, 0, 10))
|
|
|
|
export var bVal = b(10);
|
|
>bVal : Symbol(bVal, Decl(internalAliasFunction.ts, 8, 14))
|
|
>b : Symbol(b, Decl(internalAliasFunction.ts, 6, 10))
|
|
|
|
export var bVal2 = b;
|
|
>bVal2 : Symbol(bVal2, Decl(internalAliasFunction.ts, 9, 14))
|
|
>b : Symbol(b, Decl(internalAliasFunction.ts, 6, 10))
|
|
}
|
|
|