TypeScript/tests/baselines/reference/interMixingModulesInterfaces0.types
2015-04-15 16:44:20 -07:00

39 lines
574 B
Plaintext

=== 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