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>
|
2014-08-19 04:56:03 +02:00
|
|
|
>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
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|