Add missing parenthesizePat in cvtp
We need to ensure that the output of `cvtp` is parenthesized (at precedence `sigPrec`) so that any pattern signatures with a surrounding pattern signature can parse correctly. Fixes #24837.
Showing
- compiler/GHC/ThToHs.hs 2 additions, 1 deletioncompiler/GHC/ThToHs.hs
- testsuite/tests/th/T24837.hs 6 additions, 0 deletionstestsuite/tests/th/T24837.hs
- testsuite/tests/th/T24837.stderr 4 additions, 0 deletionstestsuite/tests/th/T24837.stderr
- testsuite/tests/th/all.T 1 addition, 0 deletionstestsuite/tests/th/all.T
Loading
Please register or sign in to comment