424b805d61
* 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.
9 lines
286 B
Plaintext
9 lines
286 B
Plaintext
=== tests/cases/compiler/spellingSuggestionGlobal1.ts ===
|
|
export {}
|
|
declare global { const x: any }
|
|
>global : Symbol(global, Decl(spellingSuggestionGlobal1.ts, 0, 9))
|
|
>x : Symbol(x, Decl(spellingSuggestionGlobal1.ts, 1, 22))
|
|
|
|
global.x // should not suggest `global` (GH#42209)
|
|
|