Skip to content

Commit 24916b0

Browse files
committed
More debug output
1 parent f13c61f commit 24916b0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5973,7 +5973,11 @@ object Types extends TypeUtils {
59735973
&& (!tp.cls.is(Trait) || takesNoArgs(tp.cls.info.parents.head))
59745974

59755975
if noArgsNeeded != validCtorOLD then
5976-
println(i"SAM change for $tp with parent ${firstParentCls.fullName}, now $noArgsNeeded")
5976+
println(
5977+
i"""SAM change for $tp / ${tp.cls.fullName} with parent ${firstParentCls.fullName}, now $noArgsNeeded
5978+
|takesNoArgs: ${takesNoArgs(tp)}
5979+
|takesNoArgsParent: ${takesNoArgs(tp.cls.info.parents.head)}
5980+
|primary: ${firstParentCls.primaryConstructor.info}""")
59775981

59785982
def isInstantiable =
59795983
!tp.cls.isOneOf(FinalOrSealed) && (tp.appliedRef <:< tp.selfType)

0 commit comments

Comments
 (0)