Allow keywords which can be used as variables to be used with OverloadedDotSyntax
There are quite a few keywords which are allowed to be used as variables. Such as "as", "dependency" etc. These weren't accepted by OverloadedDotSyntax. The fix is pretty simple, use the varid production rather than raw VARID. Fixes #20723
Showing
- compiler/GHC/Parser.y 1 addition, 1 deletioncompiler/GHC/Parser.y
- testsuite/tests/overloadedrecflds/should_compile/T20723.hs 9 additions, 0 deletionstestsuite/tests/overloadedrecflds/should_compile/T20723.hs
- testsuite/tests/overloadedrecflds/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/overloadedrecflds/should_compile/all.T
Please register or sign in to comment