Improve treatment of type applications in patterns
This patch fixes a subtle bug in the typechecking of type applications in patterns, e.g. f (MkT @Int @a x y) = ... See Note [Type applications in patterns] in GHC.Tc.Gen.Pat. This fixes #19847, #22383, #19577, #21501
Showing
- compiler/GHC/Core/DataCon.hs 1 addition, 0 deletionscompiler/GHC/Core/DataCon.hs
- compiler/GHC/Tc/Gen/Pat.hs 222 additions, 105 deletionscompiler/GHC/Tc/Gen/Pat.hs
- testsuite/tests/gadt/T19847.hs 15 additions, 0 deletionstestsuite/tests/gadt/T19847.hs
- testsuite/tests/gadt/T19847a.hs 14 additions, 0 deletionstestsuite/tests/gadt/T19847a.hs
- testsuite/tests/gadt/T19847a.stderr 12 additions, 0 deletionstestsuite/tests/gadt/T19847a.stderr
- testsuite/tests/gadt/T19847b.hs 10 additions, 0 deletionstestsuite/tests/gadt/T19847b.hs
- testsuite/tests/gadt/all.T 3 additions, 0 deletionstestsuite/tests/gadt/all.T
- testsuite/tests/typecheck/should_compile/T19577.hs 24 additions, 0 deletionstestsuite/tests/typecheck/should_compile/T19577.hs
- testsuite/tests/typecheck/should_compile/T21501.hs 24 additions, 0 deletionstestsuite/tests/typecheck/should_compile/T21501.hs
- testsuite/tests/typecheck/should_compile/T22383.hs 83 additions, 0 deletionstestsuite/tests/typecheck/should_compile/T22383.hs
- testsuite/tests/typecheck/should_compile/all.T 3 additions, 0 deletionstestsuite/tests/typecheck/should_compile/all.T
Loading
Please register or sign in to comment