TypeScript/tests/baselines/reference/interMixingModulesInterfaces2.types

32 lines
427 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/interMixingModulesInterfaces2.ts ===
module A {
2014-08-28 21:40:58 +02:00
>A : typeof A
2014-08-15 23:33:16 +02:00
export interface B {
>B : B
name: string;
>name : string
value: number;
>value : number
}
module B {
2014-08-28 21:40:58 +02:00
>B : typeof B
2014-08-15 23:33:16 +02:00
export function createB(): B {
>createB : () => B
2014-08-15 23:33:16 +02:00
>B : B
return null;
}
}
}
var x: A.B = null;
2014-08-25 19:36:12 +02:00
>x : A.B
2014-08-28 21:40:58 +02:00
>A : unknown
2014-08-25 19:36:12 +02:00
>B : A.B
2014-08-15 23:33:16 +02:00