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.
12 lines
525 B
Plaintext
12 lines
525 B
Plaintext
tests/cases/compiler/spellingSuggestionGlobal2.ts(4,1): error TS2552: Cannot find name 'global'. Did you mean 'globals'?
|
|
|
|
|
|
==== tests/cases/compiler/spellingSuggestionGlobal2.ts (1 errors) ====
|
|
export {}
|
|
declare global { const x: any }
|
|
const globals = { x: true }
|
|
global.x // should suggest `globals` (GH#42209)
|
|
~~~~~~
|
|
!!! error TS2552: Cannot find name 'global'. Did you mean 'globals'?
|
|
!!! related TS2728 tests/cases/compiler/spellingSuggestionGlobal2.ts:3:7: 'globals' is declared here.
|
|
|