Fix assertion error with linear types, #19400
The previous code using TyCoMapper could promote the same metavar twice. Use a set instead.
Showing
- compiler/GHC/Tc/Utils/Env.hs 8 additions, 13 deletionscompiler/GHC/Tc/Utils/Env.hs
- testsuite/tests/linear/should_compile/T19400.hs 14 additions, 0 deletionstestsuite/tests/linear/should_compile/T19400.hs
- testsuite/tests/linear/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/linear/should_compile/all.T
Loading
Please register or sign in to comment