-
-
Notifications
You must be signed in to change notification settings - Fork 661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[js] optional params + overloads #7794
Comments
Signature for connect() is: @:overload( function( destination : AudioNode, output : Int = 0, input : Int = 0 ) : AudioNode {} )
function connect( destination : AudioParam, output : Int = 0 ) : Void; |
That suggests that the "optional" inference of arguments in overloads doesn't work. |
Most likely default values are discarded in overload signatures. |
We don't need the default value as long as the type is correct. |
I guess #7754 was mistaken for a display-specific bug when it is actually a general problem. |
Never mind, that one uses an explicit |
Should be fixed. Keeping this open because I'd like to add a test for it somehow. |
The following used to work but no longer since #7776
Ping @Simn (if we can fix this in compiler) and @haxiomic (FYI)
The text was updated successfully, but these errors were encountered: