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 @@ -962,16 +962,11 @@ trait TypedTreeInfo extends TreeInfo[Type] { self: Trees.Instance[Type] =>
962
962
! tree.symbol.exists
963
963
&& tree.isTerm
964
964
&& hasRefinement(tree.qualifier.tpe)
965
- def loop (tree : Tree ): Boolean = tree match
966
- case TypeApply (fun, _) =>
967
- loop(fun)
968
- case Apply (fun, _) =>
969
- loop(fun)
965
+ funPart(tree) match
970
966
case tree : Select =>
971
967
isStructuralTermSelect(tree)
972
968
case _ =>
973
969
false
974
- loop(tree)
975
970
}
976
971
977
972
/** 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