2014-09-12 22:35:07 +02:00
tests/cases/conformance/externalModules/foo_1.ts(1,22): error TS2306: File 'tests/cases/conformance/externalModules/foo_0.ts' is not an external module.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/externalModules/foo_1.ts (1 errors) ====
import foo = require("./foo_0");
~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2306: File 'foo_0.ts' is not an external module.
2014-07-13 01:04:16 +02:00
// 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;
}