Commit de32beff authored by Richard Eisenberg's avatar Richard Eisenberg Committed by Marge Bot

Do not create nested quantified constraints

Previously, we would accidentally make constraints like
forall a. C a => forall b. D b => E a b c as we traversed
superclasses. No longer!

This patch also expands Note [Eagerly expand given superclasses]
to work over quantified constraints; necessary for T16502b.

Close #17202 and #16502.

test cases: typecheck/should_compile/T{17202,16502{,b}}
parent 375b3c45
Pipeline #15646 passed with stages
in 438 minutes and 45 seconds