HaxeFoundation / HaxeFoundation/haxe

Old regression

Open
#12,871 0 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

I found that the following works since Haxe 4.2 while it didn't (as it should not) with oldest Haxe version:

```haxe
class Test {
static function main() {
var arr = [];
if( arr.length > 0 ) trace(arr[0].len++);
// we should have inferred arr as Array<{ len : Int, ... }> and not allow to push without this field defined
arr.push({ size : 0 });
}
}
```

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.