HaxeFoundation / HaxeFoundation/haxe

Haxe 4.2.x regression

Open
#10,565 6 comments 0 reactions 1 assignee Claimed by @Simn View on GitHub
strong-belgian-ale
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

When upgrading some code from Haxe 4.1.5 to 4.2.x, I found the following regression:

```haxe

abstract MapProxy(Dynamic) {

@:from static inline function fromMap(map:Map):MapProxy {
return null;
}

}

class Test {
public static function main():Void {
var m : MapProxy = new Map();
}
}
```

This used to compile fine but is now failing with:
```
Test.hx:12: characters 3-44 : haxe.ds.Map : Int & EnumValue & String & Int & String & EnumValue & { }, Unknown<1>> should be MapProxy
```

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.