HaxeFoundation / HaxeFoundation/haxe
hint about calling the function when unifying with a value
Open
- 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
Assessment
This issue has not been assessed yet.