Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The following would cause issues - as it would see a field exists for the method name and immediately try and invoke it as if it were a closure.
class FieldPropertyMethodDisambiguationTest extends GroovyTestCase {
String bar = "property"
String getBar()
{ return "propertyMethod" }String bar()
{ return "method" }String bar(param)
{ return "method with param: " + param }void testCase()
{ bar() }}