15 lines
426 B
Text
15 lines
426 B
Text
|
==== tests/cases/compiler/internalAliasFunctionInsideLocalModuleWithoutExportAccessError.ts (1 errors) ====
|
||
|
export module a {
|
||
|
export function foo(x: number) {
|
||
|
return x;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export module c {
|
||
|
import b = a.foo;
|
||
|
var bVal = b(10);
|
||
|
export var bVal2 = b;
|
||
|
}
|
||
|
var d = c.b(11);
|
||
|
~
|
||
|
!!! Property 'b' does not exist on type 'typeof c'.
|