Use mkTrAppChecked in ds_ev_typeable
This change avoids violating the invariant of mkTrApp according to which the argument should not be a fully saturated function type. This ensures we don't return false negatives for type equality involving function types. Fixes #25998
Showing
- compiler/GHC/Builtin/Names.hs 5 additions, 5 deletionscompiler/GHC/Builtin/Names.hs
- compiler/GHC/HsToCore/Binds.hs 5 additions, 5 deletionscompiler/GHC/HsToCore/Binds.hs
- testsuite/tests/typecheck/should_run/T25998.hs 21 additions, 0 deletionstestsuite/tests/typecheck/should_run/T25998.hs
- testsuite/tests/typecheck/should_run/T25998.stdout 2 additions, 0 deletionstestsuite/tests/typecheck/should_run/T25998.stdout
- testsuite/tests/typecheck/should_run/all.T 1 addition, 0 deletionstestsuite/tests/typecheck/should_run/all.T
Loading
Please register or sign in to comment