2014-08-15 23:33:16 +02:00
|
|
|
=== 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
|
2014-08-19 04:56:03 +02:00
|
|
|
>a : typeof a
|
2014-08-15 23:33:16 +02:00
|
|
|
>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
|
|
|
|
}
|
|
|
|
|