HaxeFoundation / HaxeFoundation/haxe

Map<K, V> may not unify with Iterable<V>

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

Description

I just stumbled into this case, and I didn't find any other open or closed issue regarding this. When a `Map` turns out to be for example `IntMap` things work as expected, however in the case of `StringMap` unification with `Iterable` fails under some circumstances.

This is not a regression and can be seen on https://try.haxe.org/#caccc

EDIT: Ok, this is not exclusive to `StringMap`, using for example `abstract X(Int)` will result in some `IntMap` that won't allow for unification with the corresponding `Iterable`.

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.