2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/interMixingModulesInterfaces1.ts ===
|
|
|
|
module A {
|
|
|
|
>A : typeof A
|
|
|
|
|
|
|
|
export interface B {
|
|
|
|
>B : B
|
|
|
|
|
|
|
|
name: string;
|
|
|
|
>name : string
|
|
|
|
|
|
|
|
value: number;
|
|
|
|
>value : number
|
|
|
|
}
|
|
|
|
|
|
|
|
export module B {
|
|
|
|
>B : typeof B
|
|
|
|
|
|
|
|
export function createB(): B {
|
2014-08-22 03:39:46 +02:00
|
|
|
>createB : typeof createB
|
2014-08-15 23:33:16 +02:00
|
|
|
>B : B
|
|
|
|
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var x: A.B = A.B.createB();
|
|
|
|
>x : B
|
|
|
|
>A : A
|
|
|
|
>B : B
|
|
|
|
>A.B.createB() : B
|
2014-08-22 03:39:46 +02:00
|
|
|
>A.B.createB : typeof createB
|
2014-08-15 23:33:16 +02:00
|
|
|
>A.B : typeof B
|
|
|
|
>A : typeof A
|
|
|
|
>B : typeof B
|
2014-08-22 03:39:46 +02:00
|
|
|
>createB : typeof createB
|
2014-08-15 23:33:16 +02:00
|
|
|
|