17 lines
600 B
Plaintext
17 lines
600 B
Plaintext
tests/cases/conformance/externalModules/foo_1.ts(1,22): error TS2306: File 'tests/cases/conformance/externalModules/foo_0.ts' is not an external module.
|
|
|
|
|
|
==== tests/cases/conformance/externalModules/foo_1.ts (1 errors) ====
|
|
import foo = require("./foo_0");
|
|
~~~~~~~~~
|
|
!!! error TS2306: File 'foo_0.ts' is not an external module.
|
|
// Import should fail. foo_0 not an external module
|
|
if(foo.answer === 42){
|
|
|
|
}
|
|
|
|
==== tests/cases/conformance/externalModules/foo_0.ts (0 errors) ====
|
|
module foo {
|
|
export var answer = 42;
|
|
}
|
|
|