Files

17 lines
423 B
Plaintext

foo_1.ts(1,22): error TS2306: File 'foo_0.ts' is not a module.
==== foo_1.ts (1 errors) ====
import foo = require("./foo_0");
~~~~~~~~~
!!! error TS2306: File 'foo_0.ts' is not a module.
// Import should fail. foo_0 not an external module
if(foo.answer === 42){
}
==== foo_0.ts (0 errors) ====
namespace foo {
export var answer = 42;
}