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 there is precisely one alternative in A which is a (possibly
polymorphic) method
type whose arity matches the number of arguments given, that
alternative is chosen."
with:
"If there is precisely one alternative in A which is a (possibly
polymorphic) method
type which is potentially applicably to the arguments given, that
alternative is chosen.
A list of arguments (e1, ..., em) is potentially applicable to a
method m in the context of an expected type E if the arguments (e1', ..., em') are applicable to m, either with the expected type E or with
no expected type. ei' is defined as the shape of the argument ei.
The shape of an argument is defined as:
for a function expression of (p1: T1, ..., pn: TN) => body: (p1$$: Any,..., pn$$: Any) => shape(body)
for a named argument name = expr: name = shape(expr))
for all other expressions: nothing$$, where nothing$$ an synthetic expression of type Nothing.
The text was updated successfully, but these errors were encountered:
From a discussion on Scala User:
http://thread.gmane.org/gmane.comp.lang.scala.user/28171
http://thread.gmane.org/gmane.comp.lang.scala.user/28169
I think the spec should be updated to replace:
"If there is precisely one alternative in A which is a (possibly
polymorphic) method
type whose arity matches the number of arguments given, that
alternative is chosen."
with:
"If there is precisely one alternative in
A
which is a (possiblypolymorphic) method
type which is potentially applicably to the arguments given, that
alternative is chosen.
A list of arguments
(e1, ..., em)
is potentially applicable to amethod
m
in the context of an expected type E if the arguments(e1', ..., em')
are applicable tom
, either with the expected typeE
or withno expected type.
ei'
is defined as the shape of the argumentei
.The shape of an argument is defined as:
(p1: T1, ..., pn: TN) => body
:(p1$$: Any,..., pn$$: Any) => shape(body)
name = expr
: name =shape(expr))
nothing$$
, wherenothing$$
an synthetic expression of typeNothing
.The text was updated successfully, but these errors were encountered: