From 3c7a682f87deb5c05ebe7d27fe59c60391f867f3 Mon Sep 17 00:00:00 2001 From: Aleksander Boruch-Gruszecki Date: Wed, 28 Apr 2021 13:46:11 +0200 Subject: [PATCH] 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. --- compiler/src/dotty/tools/dotc/core/Denotations.scala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/compiler/src/dotty/tools/dotc/core/Denotations.scala b/compiler/src/dotty/tools/dotc/core/Denotations.scala index f3c547697dec..b8d1caf3d1b7 100644 --- a/compiler/src/dotty/tools/dotc/core/Denotations.scala +++ b/compiler/src/dotty/tools/dotc/core/Denotations.scala @@ -791,8 +791,6 @@ object Denotations { val currentPeriod = ctx.period val valid = myValidFor - def signalError() = println(s"error while transforming $this") - def assertNotPackage(d: SingleDenotation, transformer: DenotTransformer) = d match case d: ClassDenotation => assert(!d.is(Package), s"illegal transformation of package denotation by transformer $transformer") @@ -836,7 +834,7 @@ object Denotations { // To work correctly, we need to demand that the context with the new phase // is not retained in the result. catch case ex: CyclicReference => - signalError() + // println(s"error while transforming $this") throw ex finally mutCtx.setPeriod(savedPeriod)