15 lines
No EOL
609 B
Text
15 lines
No EOL
609 B
Text
==== tests/cases/compiler/importAliasAnExternalModuleInsideAnInternalModule_file1.ts (0 errors) ====
|
|
import r = require('importAliasAnExternalModuleInsideAnInternalModule_file0');
|
|
module m_private {
|
|
//import r2 = require('m'); // would be error
|
|
export import C = r; // no error
|
|
C.m.foo();
|
|
}
|
|
|
|
==== tests/cases/compiler/importAliasAnExternalModuleInsideAnInternalModule_file0.ts (1 errors) ====
|
|
export module m {
|
|
~
|
|
!!! Cannot compile external modules unless the '--module' flag is provided.
|
|
export function foo() { }
|
|
}
|
|
|