2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/interMixingModulesInterfaces4.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(): number {
|
2014-08-28 21:52:44 +02:00
|
|
|
>createB : () => number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
interface B {
|
|
|
|
>B : B
|
|
|
|
|
|
|
|
name: string;
|
|
|
|
>name : string
|
|
|
|
|
|
|
|
value: number;
|
|
|
|
>value : number
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var x : number = A.B.createB();
|
|
|
|
>x : number
|
|
|
|
>A.B.createB() : number
|
2014-08-28 21:52:44 +02:00
|
|
|
>A.B.createB : () => number
|
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 : () => number
|
2014-08-15 23:33:16 +02:00
|
|
|
|