Fix cloneWanted for coercion holes
A small bug was introduced in cloneWanted in 8bb52d91, which meant that when cloning an evidence variable we could end up creating a coercion hole instead of a new EvVar! Fixes #21130
parent
19d2143a
No related branches found
No related tags found
Pipeline #50911 failed
Stage: tool-lint
Stage: quick-build
Stage: full-build
Stage: packaging
Stage: testing
Showing
- compiler/GHC/Tc/Utils/TcMType.hs 1 addition, 1 deletioncompiler/GHC/Tc/Utils/TcMType.hs
- testsuite/tests/typecheck/should_fail/T21130.hs 10 additions, 0 deletionstestsuite/tests/typecheck/should_fail/T21130.hs
- testsuite/tests/typecheck/should_fail/T21130.stderr 35 additions, 0 deletionstestsuite/tests/typecheck/should_fail/T21130.stderr
- testsuite/tests/typecheck/should_fail/all.T 1 addition, 0 deletionstestsuite/tests/typecheck/should_fail/all.T
Loading