File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -969,16 +969,11 @@ trait TypedTreeInfo extends TreeInfo[Type] { self: Trees.Instance[Type] =>
969969 ! tree.symbol.exists
970970 && tree.isTerm
971971 && hasRefinement(tree.qualifier.tpe)
972- def loop (tree : Tree ): Boolean = tree match
973- case TypeApply (fun, _) =>
974- loop(fun)
975- case Apply (fun, _) =>
976- loop(fun)
972+ funPart(tree) match
977973 case tree : Select =>
978974 isStructuralTermSelect(tree)
979975 case _ =>
980976 false
981- loop(tree)
982977 }
983978
984979 /** Return a pair consisting of (supercall, rest)
Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ trait Dynamic {
242242
243243 fun.tpe.widen match {
244244 case tpe : ValueType =>
245- structuralCall(nme.selectDynamic, Nil ).maybeBoxingCast(fun.tpe)
245+ structuralCall(nme.selectDynamic, Nil ).maybeBoxingCast(fun.tpe.widenExpr )
246246
247247 case tpe : MethodType =>
248248 def isDependentMethod (tpe : Type ): Boolean = tpe match {
You can’t perform that action at this time.
0 commit comments