25 lines
364 B
Plaintext
25 lines
364 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 : unknown
|
|
>Foo : x.Foo
|
|
}
|
|
|
|
|
|
|