HaxeFoundation / HaxeFoundation/haxe

abstract Map key types prevent inlining

Open
#8,621 1 comment 0 reactions 0 assignees View on GitHub
feature-abstracts feature-inline
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

```haxe
abstract A(Int) from Int {}

class Main {
static function main() {
var m1 = new Map();
m1.set(0, 0); // inlined

var m2 = new Map();
m2.set(0, 0); // not inlined
}
}
```

```js
Main.main = function() {
var m1_h = { };
m1_h[0] = 0;
var m2 = new haxe_ds_IntMap();
m2.set(0,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.