Enable ImpredicativeTypes internally when typechecking selector bindings
This is necessary for certain record selectors with higher-rank types, such as the examples in #18005. See `Note [Impredicative record selectors]` in `TcTyDecls`. Fixes #18005.
Showing
- compiler/typecheck/TcTyDecls.hs 28 additions, 0 deletionscompiler/typecheck/TcTyDecls.hs
- testsuite/tests/typecheck/should_compile/T18005.hs 30 additions, 0 deletionstestsuite/tests/typecheck/should_compile/T18005.hs
- testsuite/tests/typecheck/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/typecheck/should_compile/all.T
Loading
Please register or sign in to comment