Skip to content

Instantly share code, notes, and snippets.

@baybatu
Last active February 28, 2016 08:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baybatu/6ba13670f213da7dbc28 to your computer and use it in GitHub Desktop.
Save baybatu/6ba13670f213da7dbc28 to your computer and use it in GitHub Desktop.
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