We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7eb4042 commit ddcbb93Copy full SHA for ddcbb93
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -680,11 +680,17 @@ 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
687
}
688
689
+ inline override def foo(x: Fun) =
690
+ def foo(x: Int) = foo(x)
691
+
692
693
694
def goApplied(tp: AppliedType, tycon: HKTypeLambda) =
695
go(tycon.resType).mapInfo(info =>
696
tycon.derivedLambdaAbstraction(tycon.paramNames, tycon.paramInfos, info).appliedTo(tp.args))
0 commit comments