=== tests/cases/compiler/declFileImportedTypeUseInTypeArgPosition.ts === class List { } >List : List >T : T declare module 'mod1' { class Foo { >Foo : Foo } } declare module 'moo' { import x = require('mod1'); >x : typeof x export var p: List; >p : List >List : List >x : any >Foo : x.Foo }