TypeScript/tests/baselines/reference/spellingSuggestionGlobal4.types
Matt Kantor 424b805d61
Fix "Cannot find name 'global'. Did you mean 'global'?" (#42262)
* Add tests for "Cannot find name 'global'. Did you mean 'global'?"

* Fix "Cannot find name 'global'. Did you mean 'global'?"

* Add an additional test case for spelling suggestions of "global".

* Name the boolean for suggestions being global scope augmentations.
2021-01-20 15:23:34 -08:00

12 lines
234 B
Plaintext

=== tests/cases/compiler/spellingSuggestionGlobal4.ts ===
export {}
declare global { var x: any }
>global : typeof global
>x : any
global.x // should not suggest `global` (GH#42209)
>global.x : any
>global : any
>x : any