Quick look: emit the multiplicity of app heads in tcValArgs
Otherwise it's not scaled properly by the context, allowing unsound expressions. Fixes #25185.
Showing
- compiler/GHC/Tc/Gen/App.hs 51 additions, 2 deletionscompiler/GHC/Tc/Gen/App.hs
- compiler/GHC/Tc/Gen/Head.hs 2 additions, 1 deletioncompiler/GHC/Tc/Gen/Head.hs
- compiler/GHC/Tc/Utils/Monad.hs 1 addition, 1 deletioncompiler/GHC/Tc/Utils/Monad.hs
- testsuite/tests/linear/should_fail/LinearConfusedDollar.stderr 5 additions, 0 deletions...uite/tests/linear/should_fail/LinearConfusedDollar.stderr
- testsuite/tests/linear/should_fail/T25185.stderr 5 additions, 0 deletionstestsuite/tests/linear/should_fail/T25185.stderr
- testsuite/tests/linear/should_fail/all.T 1 addition, 1 deletiontestsuite/tests/linear/should_fail/all.T
Loading
Please register or sign in to comment