Skip to content

Commit

Permalink
Add some diagnostics
Browse files Browse the repository at this point in the history
As `dotty.tools.pc.tests.hover.HoverTermSuite` is succeeding locally and failing on GitHub Actions
  • Loading branch information
raboof committed Jun 18, 2024
1 parent 0303a43 commit 7cf0bcb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions compiler/src/dotty/tools/backend/jvm/BTypesFromSymbols.scala
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@ class BTypesFromSymbols[I <: DottyBackendInterface](val int: I, val frontendAcce
val superCalls = superCallsMap.getOrElse(sym, List.empty)
val superCallsSet = superCalls.toSet
val additional = superCalls.filter(t => !directlyInheritedTraitsSet(t) && t.is(Trait))
// if (additional.nonEmpty)
// println(s"$fullName: adding supertraits $additional")
directlyInheritedTraits.filter(t => !allBaseClasses(t) || superCallsSet(t)) ++ additional
val direct = directlyInheritedTraits.filter(t => !allBaseClasses(t) || superCallsSet(t))
if (additional.nonEmpty)
println(s"$fullName: adding supertraits $direct and $additional")
direct ++ additional
}

val interfaces = classSym.superInterfaces.map(classBTypeFromSymbol)
Expand Down

0 comments on commit 7cf0bcb

Please sign in to comment.