Improve inference with linear types
This fixes test Linear14. The code in Unify.hs was always using multiplicity Many instead of a new metavariable.
Showing
- compiler/GHC/Tc/Utils/Unify.hs 7 additions, 6 deletionscompiler/GHC/Tc/Utils/Unify.hs
- testsuite/tests/dependent/should_compile/dynamic-paper.stderr 1 addition, 1 deletion...suite/tests/dependent/should_compile/dynamic-paper.stderr
- testsuite/tests/linear/should_compile/all.T 1 addition, 1 deletiontestsuite/tests/linear/should_compile/all.T
- testsuite/tests/typecheck/should_fail/T7869.stderr 6 additions, 4 deletionstestsuite/tests/typecheck/should_fail/T7869.stderr
Loading
Please register or sign in to comment