14 lines
No EOL
428 B
Text
14 lines
No EOL
428 B
Text
==== tests/cases/conformance/externalModules/foo_1.ts (1 errors) ====
|
|
import foo = require("./foo_0");
|
|
~~~~~~~~~
|
|
!!! 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;
|
|
}
|
|
|