[GHC] #13625: GHC internal error: ‘Y’ is not in scope during type checking, but it passed the renamer