21 lines
No EOL
940 B
Text
21 lines
No EOL
940 B
Text
==== tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType2_moduleA.ts (0 errors) ====
|
|
/// <reference path="recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts"/>
|
|
import moduleC = require("moduleC");
|
|
import ClassB = require("recursiveExportAssignmentAndFindAliasedType2_moduleB");
|
|
export var b: ClassB; // This should result in type ClassB
|
|
==== tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts (1 errors) ====
|
|
declare module "moduleC" {
|
|
import self = require("moduleD");
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! Circular definition of import alias 'self'.
|
|
export = self;
|
|
}
|
|
declare module "moduleD" {
|
|
import self = require("moduleC");
|
|
export = self;
|
|
}
|
|
|
|
==== tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType2_moduleB.ts (0 errors) ====
|
|
class ClassB { }
|
|
export = ClassB;
|
|
|