41 lines
844 B
Text
41 lines
844 B
Text
|
=== tests/cases/compiler/cyclicModuleImport.ts ===
|
||
|
declare module "SubModule" {
|
||
|
import MainModule = require('MainModule');
|
||
|
>MainModule : typeof MainModule
|
||
|
|
||
|
class SubModule {
|
||
|
>SubModule : SubModule
|
||
|
|
||
|
public static StaticVar: number;
|
||
|
>StaticVar : number
|
||
|
|
||
|
public InstanceVar: number;
|
||
|
>InstanceVar : number
|
||
|
|
||
|
public main: MainModule;
|
||
|
>main : MainModule
|
||
|
>MainModule : MainModule
|
||
|
|
||
|
constructor();
|
||
|
}
|
||
|
export = SubModule;
|
||
|
>SubModule : SubModule
|
||
|
}
|
||
|
declare module "MainModule" {
|
||
|
import SubModule = require('SubModule');
|
||
|
>SubModule : typeof SubModule
|
||
|
|
||
|
class MainModule {
|
||
|
>MainModule : MainModule
|
||
|
|
||
|
public SubModule: SubModule;
|
||
|
>SubModule : SubModule
|
||
|
>SubModule : SubModule
|
||
|
|
||
|
constructor();
|
||
|
}
|
||
|
export = MainModule;
|
||
|
>MainModule : MainModule
|
||
|
}
|
||
|
|