HaxeFoundation / HaxeFoundation/haxe
Setter not triggered with abstract
Open
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
In some cases it seems doing a set inside an abstract does not trigger the value setter.
```haxe
enum E {
A;
}
class Main {
public static var flags(default,set) : haxe.EnumFlags = new haxe.EnumFlags();
static function set_flags(v) {
throw "Not reached";
return flags = v;
}
static function main() {
flags.set(A);
trace("Done");
}
}
```
Contributor guide
Assessment
This issue has not been assessed yet.