ceylon/ceylon-compiler — Issue #227: Bug with getters/setters
Author: FroMage
Created: 2011-11-25 09:43:54+00:00
State: open
Labels: BUG

```java
shared class Customer(String pName) {
variable Natural _salary := 500;
shared Natural salary {
print("Getter of salary called");
return this._salary;
}
assign salary {
print("Setter of salary called");
_salary := salary;
}
}
```

Output:

Getter of salary called
500
Setter of salary called
Getter of salary called
Getter of salary called
500

There is obviously a getter called too many, AND the setter seems to not be working.