TypeScript/tests/baselines/reference/interMixingModulesInterfaces0.types
2014-08-28 12:52:44 -07:00

38 lines
564 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;
}
}
export interface B {
>B : B
name: string;
>name : string
value: number;
>value : number
}
}
var x: A.B = A.B.createB();
>x : A.B
>A : unknown
>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