=== tests/cases/compiler/interMixingModulesInterfaces0.ts === module A { >A : typeof A export module B { >B : typeof B export function createB(): B { >createB : () => B >B : B return null; >null : null } } export interface B { >B : B name: string; >name : string value: number; >value : number } } var x: A.B = A.B.createB(); >x : A.B >A : any >B : A.B >A.B.createB() : A.B >A.B.createB : () => A.B >A.B : typeof A.B >A : typeof A >B : typeof A.B >createB : () => A.B