TypeScript/tests/baselines/reference/moduleSymbolMerging.types

22 lines
316 B
Text
Raw Normal View History

2014-08-28 01:58:31 +02:00
=== tests/cases/compiler/B.ts ===
///<reference path="A.ts" />
module A { ; }
2014-08-28 21:40:58 +02:00
>A : typeof A
2014-08-28 01:58:31 +02:00
module B {
2014-08-28 21:40:58 +02:00
>B : typeof B
2014-08-28 01:58:31 +02:00
export function f(): A.I { return null; }
>f : () => A.I
2014-08-28 21:40:58 +02:00
>A : unknown
2014-08-28 01:58:31 +02:00
>I : A.I
}
=== tests/cases/compiler/A.ts ===
module A { export interface I {} }
2014-08-28 21:40:58 +02:00
>A : typeof A
2014-08-28 01:58:31 +02:00
>I : I