Fix coercion optimisation for SelCo (#23362)
setNominalRole_maybe is supposed to output a nominal coercion. In the SelCo case, it was not updating the stored role to Nominal, causing #23362.
Showing
- compiler/GHC/Core/Coercion.hs 12 additions, 3 deletionscompiler/GHC/Core/Coercion.hs
- testsuite/tests/simplCore/should_compile/T23362.hs 21 additions, 0 deletionstestsuite/tests/simplCore/should_compile/T23362.hs
- testsuite/tests/simplCore/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/simplCore/should_compile/all.T
Loading
Please register or sign in to comment