28 lines
532 B
Text
28 lines
532 B
Text
|
=== tests/cases/compiler/internalAliasFunctionInsideTopLevelModuleWithoutExport.ts ===
|
||
|
export module a {
|
||
|
>a : typeof a
|
||
|
|
||
|
export function foo(x: number) {
|
||
|
>foo : (x: number) => number
|
||
|
>x : number
|
||
|
|
||
|
return x;
|
||
|
>x : number
|
||
|
}
|
||
|
}
|
||
|
|
||
|
import b = a.foo;
|
||
|
>b : (x: number) => number
|
||
|
>a : (x: number) => number
|
||
|
>foo : (x: number) => number
|
||
|
|
||
|
export var bVal = b(10);
|
||
|
>bVal : number
|
||
|
>b(10) : number
|
||
|
>b : (x: number) => number
|
||
|
|
||
|
export var bVal2 = b;
|
||
|
>bVal2 : (x: number) => number
|
||
|
>b : (x: number) => number
|
||
|
|