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