HaxeFoundation / HaxeFoundation/haxe

Inline constructors vs. Void (continued)

Open
#11,396 3 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

This code kills the analyzer with a stack overflow:

```haxe
function main() {
[var tmp];
}
```

While I definitely want to fix that in the analyzer too, the code that comes out of the inline constructor processing has a problem too:

```
[Function:() -> Void]
[Block:Array]
[Var inlarr_0<6843>(VAssigned):Void]
[Binop:Void]
[Local inlarr_0(6843):Void:Void]
=
[Block:Void]
```

There shouldn't be an empty `TBlock` in a value place.

cc @basro

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.