Skip to content

Commit

Permalink
More debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Sep 16, 2024
1 parent f13c61f commit 24916b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion compiler/src/dotty/tools/dotc/core/Types.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5973,7 +5973,11 @@ object Types extends TypeUtils {
&& (!tp.cls.is(Trait) || takesNoArgs(tp.cls.info.parents.head))

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

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

0 comments on commit 24916b0

Please sign in to comment.