GROOVY-6735: Fix regression due to closure parameter type inference (tweak test)