On 13.07.2017 05:44, Daniel Sun wrote:
[...]
--------------------------------------------
class Person {
String name = '123'
private name = 123
}
new Person().getName().class // class java.lang.Integer
--------------------------------------------
class Person {
String name = '123'
private name = 123
public String getName() {
return this.name;
}
}
new Person().getName().class // class java.lang.String
I think we should set the rule that if you redefine a field for a
property, you should not be able to define an initializer for both
bye Jochen