TypeScript/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.errors.txt

20 lines
742 B
Plaintext
Raw Normal View History

2015-04-27 03:31:47 +02:00
tests/cases/compiler/ambientExternalModuleInAnotherExternalModule.ts(5,16): error TS2435: Ambient modules cannot be nested in other modules.
tests/cases/compiler/ambientExternalModuleInAnotherExternalModule.ts(10,22): error TS2307: Cannot find module 'ext'.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/ambientExternalModuleInAnotherExternalModule.ts (2 errors) ====
class D { }
export = D;
declare module "ext" {
2014-07-17 01:15:10 +02:00
~~~~~
2015-04-27 03:31:47 +02:00
!!! error TS2435: Ambient modules cannot be nested in other modules.
2014-07-13 01:04:16 +02:00
export class C { }
}
// Cannot resolve this ext module reference
import ext = require("ext");
~~~~~
2015-04-27 03:31:47 +02:00
!!! error TS2307: Cannot find module 'ext'.
2014-07-13 01:04:16 +02:00
var x = ext;