error-messages icon indicating copy to clipboard operation
error-messages copied to clipboard

Inaccessible binding in the same decl group is suggested in view pattern

Open tek opened this issue 2 years ago • 2 comments

(v -> _) = undefined
v = undefined
-- • Variable not in scope: v :: t0 -> t1
-- • Perhaps you meant ‘v’

The suggestion should not be made.

tek avatar Nov 03 '22 18:11 tek

Sensible. I'd say you can immediately open a GHC issue about this. There's not really much to debate.

noughtmare avatar Nov 03 '22 20:11 noughtmare

https://gitlab.haskell.org/ghc/ghc/-/issues/22406

tek avatar Nov 03 '22 21:11 tek