2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/ambientExternalModuleWithRelativeExternalImportDeclaration.ts(2,5): error TS2439: Import 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");
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2439: Import declaration in an ambient external module declaration cannot reference external module through relative external module name.
|
2014-07-13 01:04:16 +02:00
|
|
|
~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +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;
|
|
|
|
}
|