Skip to content

Commit

Permalink
Merged branch idea243.release into idea243.x
Browse files Browse the repository at this point in the history
  • Loading branch information
builduser committed Jan 9, 2025
2 parents 51631b2 + 2157661 commit d42c8ed
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,10 @@ package object collections {
@tailrec
private def isExpressionOfType(fqns: String*)(tpbl: Typeable): Boolean = tpbl match {
case Resolved(srr @ ScalaResolveResult(fun: ScFunction, _)) if fun.name == CommonNames.Apply =>
isExpressionOfType(fqns: _*)(
srr.getActualElement.asInstanceOf[Typeable]
)
srr.getActualElement match {
case element: Typeable => isExpressionOfType(fqns: _*)(element)
case _ => false
}
case Typeable(scType) => fqns.exists(conformsToTypeFromClass(scType, _)(scType.projectContext))
case _ => false
}
Expand Down

0 comments on commit d42c8ed

Please sign in to comment.