Skip to content

Commit 20ad8d9

Browse files
abgruszeckimichelou
authored andcommitted
Silence a debug println
Currently, when running testCompilation i1286, the following always gets printed: error while transforming method splitAt error while transforming method tuple2ToZippedOps It seems that the associated error gets caught and handled, so we shouldn't print this message.
1 parent e5df14a commit 20ad8d9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -791,8 +791,6 @@ object Denotations {
791791
val currentPeriod = ctx.period
792792
val valid = myValidFor
793793

794-
def signalError() = println(s"error while transforming $this")
795-
796794
def assertNotPackage(d: SingleDenotation, transformer: DenotTransformer) = d match
797795
case d: ClassDenotation =>
798796
assert(!d.is(Package), s"illegal transformation of package denotation by transformer $transformer")
@@ -836,7 +834,7 @@ object Denotations {
836834
// To work correctly, we need to demand that the context with the new phase
837835
// is not retained in the result.
838836
catch case ex: CyclicReference =>
839-
signalError()
837+
// println(s"error while transforming $this")
840838
throw ex
841839
finally
842840
mutCtx.setPeriod(savedPeriod)

0 commit comments

Comments
 (0)