Ensure Any is not levity-polymorphic in FFI
The previous patch forgot to account for a type such as Any @(TYPE (BoxedRep l)) for a quantified levity variable l.
Showing
- compiler/GHC/Core/Type.hs 18 additions, 11 deletionscompiler/GHC/Core/Type.hs
- compiler/GHC/Tc/Utils/TcType.hs 2 additions, 2 deletionscompiler/GHC/Tc/Utils/TcType.hs
- testsuite/tests/ffi/should_fail/T21305_fail.hs 2 additions, 0 deletionstestsuite/tests/ffi/should_fail/T21305_fail.hs
- testsuite/tests/ffi/should_fail/T21305_fail.stderr 8 additions, 0 deletionstestsuite/tests/ffi/should_fail/T21305_fail.stderr
Loading
Please register or sign in to comment