HaxeFoundation / HaxeFoundation/haxe

[display] hover fails on pattern matching "rest" arguments

Open
#7,927 8 comments 0 reactions 1 assignee Claimed by @Simn View on GitHub
enhancement feature-ide unresolved
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

Hover fails with "Not enough arguments" when hovering over the `_` here.

```haxe
class Main {
static function main() {
var f:Foo;
switch (f) {
case Bar(_):
}
}
}

enum Foo {
Bar(a:Int, b:Int);
}
```

It would be neat if it instead listed all the ignored arguments, but I'm not sure if that's possible with the current `DisplayItem` kinds.

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.