2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/conformance/externalModules/foo1.ts(6,1): error TS1148: Cannot compile external modules unless the '--module' flag is provided.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/conformance/externalModules/foo2.ts (0 errors) ====
|
|
|
|
import foo1 = require('./foo1');
|
|
|
|
var x: number = foo1.b();
|
|
|
|
==== tests/cases/conformance/externalModules/foo1.ts (1 errors) ====
|
|
|
|
|
|
|
|
declare module M1 {
|
|
|
|
export var a: string;
|
|
|
|
export function b(): number;
|
|
|
|
}
|
|
|
|
export = M1;
|
|
|
|
~~~~~~~~~~~~
|
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
|
|
|
|