Last active
February 28, 2016 08:11
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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