Commit 53ff2cd0 authored by Richard Eisenberg's avatar Richard Eisenberg

Fix #17021 by checking more return kinds

All the details are in new Note [Datatype return kinds] in
TcTyClsDecls.

Test case: typecheck/should_fail/T17021{,b}
           typecheck/should_compile/T17021a

Updates haddock submodule
parent 75168d07
Pipeline #16854 passed with stages
in 544 minutes and 23 seconds