20 lines
No EOL
561 B
Text
20 lines
No EOL
561 B
Text
==== tests/cases/compiler/internalAliasClassInsideLocalModuleWithoutExportAccessError.ts (1 errors) ====
|
|
export module x {
|
|
export class c {
|
|
foo(a: number) {
|
|
return a;
|
|
}
|
|
}
|
|
}
|
|
|
|
export module m2 {
|
|
export module m3 {
|
|
import c = x.c;
|
|
export var cProp = new c();
|
|
var cReturnVal = cProp.foo(10);
|
|
}
|
|
}
|
|
|
|
export var d = new m2.m3.c();
|
|
~
|
|
!!! Property 'c' does not exist on type 'typeof m3'. |