2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/conformance/externalModules/test/foo.d.ts(1,23): error TS1148: Cannot compile external modules unless the '--module' flag is provided.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/conformance/externalModules/test/file1.ts (0 errors) ====
|
|
|
|
import foo = require('foo');
|
|
|
|
import other = require('./other');
|
|
|
|
import relMod = require('./sub/relMod');
|
|
|
|
|
|
|
|
if(foo.M2.x){
|
|
|
|
var x = new relMod(other.M2.x.charCodeAt(0));
|
|
|
|
}
|
|
|
|
|
|
|
|
==== tests/cases/conformance/externalModules/test/foo.d.ts (1 errors) ====
|
|
|
|
export declare module M2 {
|
2014-07-19 02:30:06 +02:00
|
|
|
~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1148: Cannot compile external modules unless the '--module' flag is provided.
|
2014-07-13 01:04:16 +02:00
|
|
|
export var x: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
==== tests/cases/conformance/externalModules/test/other.d.ts (0 errors) ====
|
|
|
|
export declare module M2 {
|
|
|
|
export var x: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
==== tests/cases/conformance/externalModules/test/sub/relMod.d.ts (0 errors) ====
|
|
|
|
declare class Test {
|
|
|
|
constructor(x: number);
|
|
|
|
}
|
|
|
|
export = Test;
|
|
|
|
|