We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7eb4042 commit 465b81bCopy full SHA for 465b81b
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -680,6 +680,7 @@ object Types {
680
joint match
681
case joint: SingleDenotation
682
if rinfo.isInstanceOf[MethodOrPoly] && rinfo <:< joint.info =>
683
+ // use `rinfo` to keep the right parameter names for named args. See i8516.scala.
684
joint.derivedSingleDenotation(joint.symbol, rinfo)
685
case _ =>
686
joint
0 commit comments