You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a function has @:optional metadata, completion fails for that type. In the following example, there will be no completion for example, but if you remove @:optional, completion works.
I had a similar bug in my sublime plugin – I assumed if kind is 'method', then type will be a function signature, however the function signature is wrapped in Null<T> so it fails to parse as a function. I.e., the type returned from haxe --display of the methodoptionalTest() is Null<Void -> Void, which doesn't parse as a function signature
The text was updated successfully, but these errors were encountered:
If a function has
@:optional
metadata, completion fails for that type. In the following example, there will be no completion forexample
, but if you remove@:optional
, completion works.I had a similar bug in my sublime plugin – I assumed if
kind
is 'method', thentype
will be a function signature, however the function signature is wrapped inNull<T>
so it fails to parse as a function. I.e., the type returned from haxe --display of themethod
optionalTest()
isNull<Void -> Void
, which doesn't parse as a function signatureThe text was updated successfully, but these errors were encountered: