HaxeFoundation / HaxeFoundation/haxe

Abstract as IntMap key prevents unification with Iterable<V>

Open
#10,015 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

This is quite awkward, not sure why it happens:

```haxe
using Lambda;

function main() {
[0 => 1].count();
[(0 : Foo) => 1].count(); // haxe.ds.Map has no field count
}

abstract Foo(Int) from Int {}
```

It works with a `to Int`.

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.