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
@paulp said:
This is as specified. "In a method application expression, when multiple overloaded alternatives are applicable, the alternative which use default arguments is never selected."
{code}object test {
def foo(a: Int) = 0;
def foo(a: Int, b: Int = 0) = 1
}
defined module test
test.foo(0)
res0: Int = 0{code}
This should provide an error, because the choice of which overload to call is ambiguous.
The text was updated successfully, but these errors were encountered: