HaxeFoundation / HaxeFoundation/haxe

[display] no expected-type completion for (Map) array-assignment

Open
#8,038 2 comments 0 reactions 1 assignee Claimed by @Simn View on GitHub
discussion
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

```haxe
class Main {
static function main() {
var x = new Map();
x[""] = |
}
}
```

no `{fields...}` 😢

Works with Array, didn't test with custom/non-multiType abstracts, but I suspect it's a general abstract operator overloading issue. Could we at least provide the expected type when there's only one `@:op([])`?

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.