GROOVY-6671: Incorrect handling of wildcards in return type inference, part 1