TypeScript/tests/baselines/reference/declFileImportedTypeUseInTypeArgPosition.types
2015-04-15 16:44:20 -07:00

25 lines
360 B
Plaintext

=== tests/cases/compiler/declFileImportedTypeUseInTypeArgPosition.ts ===
class List<T> { }
>List : List<T>
>T : T
declare module 'mod1' {
class Foo {
>Foo : Foo
}
}
declare module 'moo' {
import x = require('mod1');
>x : typeof x
export var p: List<x.Foo>;
>p : List<x.Foo>
>List : List<T>
>x : any
>Foo : x.Foo
}