HaxeFoundation / HaxeFoundation/haxe

hint about calling the function when unifying with a value

Open
#6,860 3 comments 5 reactions 0 assignees View on GitHub
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

This [SO question](https://stackoverflow.com/questions/48875323/int-should-be-void-int-when-comparing-two-integers) got me thinking that we could add something like `Did you forget to call the function?` to the unification error like this:

```haxe
function getId() return 10;
if (getId == 10) { // Int should be Void -> Int
}
```

This seems like a low-hanging fruit.

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.