TypeScript/tests/baselines/reference/declFileImportedTypeUseInTypeArgPosition.types

25 lines
360 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/declFileImportedTypeUseInTypeArgPosition.ts ===
class List<T> { }
>List : List<T>
>T : T
2014-08-15 23:33:16 +02:00
declare module 'mod1' {
class Foo {
>Foo : Foo
2014-08-15 23:33:16 +02:00
}
}
declare module 'moo' {
import x = require('mod1');
>x : typeof x
2014-08-15 23:33:16 +02:00
export var p: List<x.Foo>;
>p : List<x.Foo>
>List : List<T>
>x : any
>Foo : x.Foo
2014-08-15 23:33:16 +02:00
}