GROOVY-6272: Cannot define a no-args closure in Groovy Shell