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
classC(vala:Int)
newC(a =10, b =15) // too many arguments for constructor C: (a: Int)
Here, it's easy to see that argument b is superfluous. However, if constructor has considerably more arguments (e.g. 10+), finding excessive arguments becomes a non-trivial task. Error message should provide the list of excessive arguments, as not enough arguments compiler error does.
The text was updated successfully, but these errors were encountered:
Consider the following code:
Here, it's easy to see that argument
b
is superfluous. However, if constructor has considerably more arguments (e.g. 10+), finding excessive arguments becomes a non-trivial task. Error message should provide the list of excessive arguments, asnot enough arguments
compiler error does.The text was updated successfully, but these errors were encountered: