HaxeFoundation / HaxeFoundation/haxe

abstract type cannot modify itself when `--no-inline`

Open
#9,960 5 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.