Another <no location info> error (Tuple section in pattern context)
Summary
For some syntax errors GHC cannot locate the error (: error: Tuple section in pattern context).
Steps to reproduce
ok = (\ (0, _) -> (0, undefined))
-- But forgetting the underscore,
error_notLocated = (\ (0, ) -> (0, undefined)) -- <no location info>: error: Tuple section in pattern context
Expected behavior
GHC should locate the error in the source code.
Environment
- GHC version used: 8.10.4