Open DreamStar92 opened 1 month ago
The write only property would at the very least be constructed as a normal getter:
public int area() {
return h * w;
}
That said, it doesn't work either. :-/
This should work fine with just the annotations, and should not require special forms of method names.
Currently, even if it is a normal getter, it will not take effect if there is no field.
Supporting methods as write-only fields, the current implementation causes confusion when using properties because the field value is a placeholder.
Or are there other correct ways to implement logical fields that I don’t know? Please let me know.
expect
current