Skip to content

Commit 465b81b

Browse files
committed
Add explanation comment
1 parent 7eb4042 commit 465b81b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,7 @@ 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

0 commit comments

Comments
 (0)