File tree 2 files changed +2
-7
lines changed
compiler/src/dotty/tools/dotc
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] =>
969
969
! tree.symbol.exists
970
970
&& tree.isTerm
971
971
&& 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
977
973
case tree : Select =>
978
974
isStructuralTermSelect(tree)
979
975
case _ =>
980
976
false
981
- loop(tree)
982
977
}
983
978
984
979
/** Return a pair consisting of (supercall, rest)
Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ trait Dynamic {
242
242
243
243
fun.tpe.widen match {
244
244
case tpe : ValueType =>
245
- structuralCall(nme.selectDynamic, Nil ).maybeBoxingCast(fun.tpe)
245
+ structuralCall(nme.selectDynamic, Nil ).maybeBoxingCast(fun.tpe.widenExpr )
246
246
247
247
case tpe : MethodType =>
248
248
def isDependentMethod (tpe : Type ): Boolean = tpe match {
You can’t perform that action at this time.
0 commit comments