TypeScript/tests/baselines/reference/interMixingModulesInterfaces0.types

38 lines
564 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/interMixingModulesInterfaces0.ts ===
module A {
2014-08-28 21:40:58 +02:00
>A : typeof A
2014-08-15 23:33:16 +02:00
export 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;
}
}
export interface B {
>B : B
name: string;
>name : string
value: number;
>value : number
}
}
var x: A.B = A.B.createB();
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
>A.B.createB() : A.B
>A.B.createB : () => A.B
2014-08-25 19:36:12 +02:00
>A.B : typeof A.B
2014-08-15 23:33:16 +02:00
>A : typeof A
2014-08-25 19:36:12 +02:00
>B : typeof A.B
>createB : () => A.B
2014-08-15 23:33:16 +02:00