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 {
|
2014-08-28 21:52:44 +02:00
|
|
|
>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
|
2014-08-28 21:52:44 +02:00
|
|
|
>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
|
2014-08-28 21:52:44 +02:00
|
|
|
>createB : () => A.B
|
2014-08-15 23:33:16 +02:00
|
|
|
|