intellij-haxe icon indicating copy to clipboard operation
intellij-haxe copied to clipboard

Autocomplete confused when a function type parameter has one argument

Open CanIGetaPR opened this issue 5 years ago • 2 comments

Here it is displaying the iterator option correctly:

image

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

image

image

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

image

CanIGetaPR avatar Sep 27 '20 15:09 CanIGetaPR

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.

EricBishton avatar Sep 27 '20 20:09 EricBishton

Keep in mind ()->Void and Int->Void result in the same type of bugged output.

CanIGetaPR avatar Sep 27 '20 20:09 CanIGetaPR

closing this one as it looks like a fix has been merged.

m0rkeulv avatar Aug 04 '23 19:08 m0rkeulv