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

19 lines
1.1 KiB
Plaintext
Raw Normal View History

2015-02-13 19:18:58 +01:00
tests/cases/compiler/ambientExternalModuleWithRelativeExternalImportDeclaration.ts(2,5): error TS2439: Import or export declaration in an ambient external module declaration cannot reference external module through relative external module name.
tests/cases/compiler/ambientExternalModuleWithRelativeExternalImportDeclaration.ts(2,25): error TS2307: Cannot find external module './SubModule'.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/ambientExternalModuleWithRelativeExternalImportDeclaration.ts (2 errors) ====
declare module "OuterModule" {
import m2 = require("./SubModule");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2015-02-13 19:18:58 +01:00
!!! error TS2439: Import or export declaration in an ambient external module declaration cannot reference external module through relative external module name.
2014-07-13 01:04:16 +02:00
~~~~~~~~~~~~~
!!! error TS2307: Cannot find external module './SubModule'.
2014-07-13 01:04:16 +02:00
class SubModule {
public static StaticVar: number;
public InstanceVar: number;
public x: m2.c;
constructor();
}
export = SubModule;
}