TypeScript/tests/baselines/reference/interMixingModulesInterfaces1.types

39 lines
574 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/interMixingModulesInterfaces1.ts ===
module A {
>A : typeof A
2014-08-15 23:33:16 +02:00
export interface B {
>B : B
2014-08-15 23:33:16 +02:00
name: string;
>name : string
2014-08-15 23:33:16 +02:00
value: number;
>value : number
2014-08-15 23:33:16 +02:00
}
export module B {
>B : typeof B
2014-08-15 23:33:16 +02:00
export function createB(): B {
>createB : () => B
>B : B
2014-08-15 23:33:16 +02:00
return null;
2015-04-13 21:36:11 +02:00
>null : null
2014-08-15 23:33:16 +02:00
}
}
}
var x: A.B = A.B.createB();
>x : A.B
>A : any
>B : A.B
2014-08-25 19:36:12 +02:00
>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
2014-08-15 23:33:16 +02:00