TypeScript/tests/baselines/reference/importEqualsError45874.types
Andrew Branch 3519af0bab
Fix crash pulling on global types before they're initialized (#46471)
* Add failing test

* Dumb fix

* Compute error message info more lazily

* One more laziness
2021-10-25 10:53:41 -07:00

23 lines
327 B
Plaintext

=== /globals.ts ===
namespace globals {
>globals : typeof globals
export type Foo = {};
>Foo : Foo
export const Bar = {};
>Bar : {}
>{} : {}
}
import Foo = globals.toString.Blah;
>Foo : any
>globals : typeof globals
>toString : any
>Blah : any
=== /index.ts ===
const Foo = {};
>Foo : {}
>{} : {}