From 7cf0bcbfb12ecd702900f017351e615696e614d1 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Tue, 18 Jun 2024 18:07:54 +0200 Subject: [PATCH] Add some diagnostics As `dotty.tools.pc.tests.hover.HoverTermSuite` is succeeding locally and failing on GitHub Actions --- .../src/dotty/tools/backend/jvm/BTypesFromSymbols.scala | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/compiler/src/dotty/tools/backend/jvm/BTypesFromSymbols.scala b/compiler/src/dotty/tools/backend/jvm/BTypesFromSymbols.scala index 97934935f352..2fdca98f6ea7 100644 --- a/compiler/src/dotty/tools/backend/jvm/BTypesFromSymbols.scala +++ b/compiler/src/dotty/tools/backend/jvm/BTypesFromSymbols.scala @@ -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)