hashc icon indicating copy to clipboard operation
hashc copied to clipboard

Declarations should not be allowed when not inside a body block

Open kontheocharis opened this issue 2 years ago • 1 comments

The snippet () => (x := 1) should produce an error, and suggest to instead write () => { x := 1 }, since the former does not have a scope to add x to.

kontheocharis avatar Dec 20 '22 21:12 kontheocharis