Fix an levity-polymorphism error
As #19522 points out, we did not account for visible type application when trying to reject naked levity-polymorphic functions that have no binding. This patch tidies up the code, and fixes the bug too.
parent
45f14c84
No related branches found
No related tags found
Showing
- compiler/GHC/HsToCore/Expr.hs 93 additions, 87 deletionscompiler/GHC/HsToCore/Expr.hs
- compiler/GHC/HsToCore/Match/Literal.hs 2 additions, 2 deletionscompiler/GHC/HsToCore/Match/Literal.hs
- testsuite/tests/polykinds/T19522.hs 11 additions, 0 deletionstestsuite/tests/polykinds/T19522.hs
- testsuite/tests/polykinds/all.T 1 addition, 0 deletionstestsuite/tests/polykinds/all.T
Loading
Please register or sign in to comment