Skip to content

Commit ddcbb93

Browse files
committed
Add explanation comment
1 parent 7eb4042 commit ddcbb93

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

+6
Original file line numberDiff line numberDiff line change
@@ -680,11 +680,17 @@ object Types {
680680
joint match
681681
case joint: SingleDenotation
682682
if rinfo.isInstanceOf[MethodOrPoly] && rinfo <:< joint.info =>
683+
// use `rinfo` to keep the right parameter names for named args. See i8516.scala.
683684
joint.derivedSingleDenotation(joint.symbol, rinfo)
684685
case _ =>
685686
joint
686687
}
687688

689+
inline override def foo(x: Fun) =
690+
def foo(x: Int) = foo(x)
691+
692+
693+
688694
def goApplied(tp: AppliedType, tycon: HKTypeLambda) =
689695
go(tycon.resType).mapInfo(info =>
690696
tycon.derivedLambdaAbstraction(tycon.paramNames, tycon.paramInfos, info).appliedTo(tp.args))

0 commit comments

Comments
 (0)