Hi all,
I found Groovy allows declaring the field and property with same
name, e.g.
1)
https://github.com/apache/groovy/blob/master/src/test/gls/scope/MultipleDefinitionOfSameVariableTest.groovy#L110
2)
https://github.com/apache/groovy/blob/master/src/test/gls/scope/MultipleDefinitionOfSameVariableTest.groovy#L119
As we all know, the field and property with same name will confuse
developers, so I wonder why we should support the feature?
Cheers,
Daniel.Sun
--
View this message in context:
http://groovy.329449.n5.nabble.com/About-declaring-the-field-and-property-with-same-name-tp5742010.html
Sent from the Groovy Dev mailing list archive at Nabble.com.