GROOVY-6489: Generics type checking doesn't use the right receiver information in "with" blocks