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>defgetClassSafe(fullName: String):Option[String] =try {
|Some(definitions.getClass(newTypeName(fullName)))
| } catch {
|case_: MissingRequirementError=>None| }
<console>:39:error: too many arguments for overloaded method value getClass withalternatives:
Some(definitions.getClass(newTypeName(fullName)))
^
note the cliff hanger, there -- no alternatives are reported
I think the problem is that the getClass symbol is overloaded, but the tree's type is already by the time the error message is synthesized (the error arises from the erroroneous return type Option[String])
note the cliff hanger, there -- no alternatives are reported
I think the problem is that the getClass symbol is overloaded, but the tree's type is already by the time the error message is synthesized (the error arises from the erroroneous return type
Option[String]
)Taking the relevant pieces of code:
this assumes
tree.symbol.isOverloaded
impliestree.tpe.isInstanceOf[OverloadedType]
, which this bug illustrates is not necessarily the caseThe text was updated successfully, but these errors were encountered: