16 lines
No EOL
805 B
Text
16 lines
No EOL
805 B
Text
tests/cases/compiler/importInsideModule_file2.ts(2,26): error TS1147: Import declarations in a namespace cannot reference a module.
|
|
tests/cases/compiler/importInsideModule_file2.ts(2,26): error TS2307: Cannot find module 'importInsideModule_file1'.
|
|
|
|
|
|
==== tests/cases/compiler/importInsideModule_file2.ts (2 errors) ====
|
|
export module myModule {
|
|
import foo = require("importInsideModule_file1");
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS1147: Import declarations in a namespace cannot reference a module.
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2307: Cannot find module 'importInsideModule_file1'.
|
|
var a = foo.x;
|
|
}
|
|
==== tests/cases/compiler/importInsideModule_file1.ts (0 errors) ====
|
|
export var x = 1;
|
|
|