24 lines
359 B
Text
24 lines
359 B
Text
=== 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 'mod1'
|
|
|
|
export var p: List<x.Foo>;
|
|
>p : List<Foo>
|
|
>List : List<T>
|
|
>x : x
|
|
>Foo : Foo
|
|
}
|
|
|
|
|
|
|