12 lines
No EOL
550 B
Text
12 lines
No EOL
550 B
Text
==== tests/cases/compiler/importInsideModule_file2.ts (2 errors) ====
|
|
export module myModule {
|
|
import foo = require("importInsideModule_file1");
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! Import declarations in an internal module cannot reference an external module.
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! Cannot find external module 'importInsideModule_file1'.
|
|
var a = foo.x;
|
|
}
|
|
==== tests/cases/compiler/importInsideModule_file1.ts (0 errors) ====
|
|
export var x = 1;
|
|
|