EPA: do statement with leading semicolon has wrong anchor
The code do; a <- doAsync; b Generated an incorrect Anchor for the statement list that starts after the first semicolon. This commit fixes it. Closes #20256
Showing
- compiler/GHC/Parser.y 3 additions, 3 deletionscompiler/GHC/Parser.y
- compiler/GHC/Parser/PostProcess.hs 13 additions, 0 deletionscompiler/GHC/Parser/PostProcess.hs
- testsuite/tests/printer/Makefile 5 additions, 0 deletionstestsuite/tests/printer/Makefile
- testsuite/tests/printer/Test20256.hs 5 additions, 0 deletionstestsuite/tests/printer/Test20256.hs
- testsuite/tests/printer/all.T 1 addition, 0 deletionstestsuite/tests/printer/all.T
- utils/check-exact/Main.hs 4 additions, 3 deletionsutils/check-exact/Main.hs
Loading
Please register or sign in to comment