Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
It is must to use parentheses while calling function or method that starts with an uppercase letter in Groovy 2.4.5
def foo(arg) {
println(arg)
}
def Bar(arg) {
println(arg)
}
foo "berbat"
foo("berbat")
Bar("berbat")
Bar "berbat" // gives compilation error => unexpected token: berbat at line: 12, column: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.