HaxeFoundation / HaxeFoundation/haxe
abstract type cannot modify itself when `--no-inline`
Open
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
Tested on eval target. Normally works, but breaks with `--no-inline` since https://github.com/HaxeFoundation/haxe/commit/ea42f81f9371ae01282e819810f88b4017d9674c.
```haxe
class Main {
static function main() {
var v = Foo;
v.foo();
trace(v); // Traces 0 when compiled with `--no-inline`.
}
}
enum abstract Val(Int) {
var Foo = 0;
public inline function foo() this = this + 1;
}
```
Contributor guide
Assessment
This issue has not been assessed yet.