TypeScript/tests/baselines/reference/declFileImportedTypeUseInTypeArgPosition.types

25 lines
364 B
Text
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
declare module 'mod1' {
class Foo {
>Foo : Foo
}
}
declare module 'moo' {
import x = require('mod1');
2014-08-28 21:40:58 +02:00
>x : typeof x
2014-08-15 23:33:16 +02:00
export var p: List<x.Foo>;
2014-08-25 19:36:12 +02:00
>p : List<x.Foo>
>List : List<T>
2014-08-28 21:40:58 +02:00
>x : unknown
2014-08-25 19:36:12 +02:00
>Foo : x.Foo
2014-08-15 23:33:16 +02:00
}