intellij-haxe
intellij-haxe copied to clipboard
Autocomplete confused when a function type parameter has one argument
Here it is displaying the iterator option correctly:

Here it is being confused and making the return type be an argument, when there's only one argument for the function:


It displays sort of correctly if brackets are inserted around the argument, however please note this is invalid Haxe:

I have a sneaking suspicion that ()->Void is being parsed as a lambda, and not a function type specification.
But it could also be that the pretty printer (Xxx.getPresentableText()) isn't working correctly.
Keep in mind ()->Void and Int->Void result in the same type of bugged output.
closing this one as it looks like a fix has been merged.