HaxeFoundation / HaxeFoundation/haxe

Hashlink 'out of memory' or hang with static abstract constructor on mutually recursive type in 5.0.0-alpha.1+de09594

Open
#12,239 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

```bash
Fatal error: exception Out of memory
```

```haxe
class Main {
static function main() {
trace("Hello, world!");
}
}
typedef BinaryTreeDef = {
// public final v : Null;
public final ?l : Null>;
public final ?r : Null>;
}
@:forward abstract BinaryTree(BinaryTreeDef) {
public function new(self:BinaryTreeDef) this = self;
@:noUsing static public function lift(self:BinaryTreeDef):BinaryTree return new BinaryTree(self);//remove and it compiles.
}
```
build.hxml

```hxml
-cp src
-D analyzer-optimize
-main Main
--hl build.hl
```

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.