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
scala>valsym= typeOf[String].typeSymbol
sym: $r.intp.global.Symbol=classString
scala> sym.getter
<console>:39:error: ambiguous reference to overloaded definition,
both method getter in classSymbol of type (base: $r.intp.global.Symbol)$r.intp.global.Symbol
and method getter in classSymbolContextApiImpl of type=> $r.intp.global.Symbolmatch expected type?
sym.getter
^
The text was updated successfully, but these errors were encountered:
@retronym said:
I think the overload resolution is as specced.
scala>traitT { deffoo=0 }; objectOextendsT { deffoo(a: Any) =0 }; O.foo
<console>:38:error: ambiguous reference to overloaded definition,
both method foo in objectO of type (a: Any)Int
and method foo in traitT of type=>Intmatch expected type?O.foo
^
(using latest 2.11.0-SNAPSHOT)
The text was updated successfully, but these errors were encountered: