Fix #16632 by using the correct SrcSpan in checkTyClHdr
checkTyClHdr
's case for HsTyVar
was grabbing the wrong SrcSpan
,
which lead to error messages pointing to the wrong location. Easily
fixed.
checkTyClHdr
's case for HsTyVar
was grabbing the wrong SrcSpan
,
which lead to error messages pointing to the wrong location. Easily
fixed.