TypeScript/tests/baselines/reference/importEqualsError45874.errors.txt
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

15 lines
431 B
Plaintext

/globals.ts(5,22): error TS2694: Namespace 'globals' has no exported member 'toString'.
==== /globals.ts (1 errors) ====
namespace globals {
export type Foo = {};
export const Bar = {};
}
import Foo = globals.toString.Blah;
~~~~~~~~
!!! error TS2694: Namespace 'globals' has no exported member 'toString'.
==== /index.ts (0 errors) ====
const Foo = {};