2014-09-12 22:35:07 +02:00
tests/cases/compiler/importDeclRefereingExternalModuleWithNoResolve.ts(1,1): error TS1148: Cannot compile external modules unless the '--module' flag is provided.
tests/cases/compiler/importDeclRefereingExternalModuleWithNoResolve.ts(1,20): error TS2307: Cannot find external module 'externalModule'.
tests/cases/compiler/importDeclRefereingExternalModuleWithNoResolve.ts(2,16): error TS2435: Ambient external modules cannot be nested in other modules.
tests/cases/compiler/importDeclRefereingExternalModuleWithNoResolve.ts(3,26): error TS2307: Cannot find external module 'externalModule'.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/importDeclRefereingExternalModuleWithNoResolve.ts (4 errors) ====
import b = require("externalModule");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
~~~~~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2307: Cannot find external module 'externalModule'.
2014-07-13 01:04:16 +02:00
declare module "m1" {
2014-07-17 01:15:10 +02:00
~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2435: Ambient external modules cannot be nested in other modules.
2014-07-13 01:04:16 +02:00
import im2 = require("externalModule");
~~~~~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2307: Cannot find external module 'externalModule'.
2014-07-13 01:04:16 +02:00
}