Skip to content

Commit 2d2038e

Browse files
authored
Merge pull request #12257 from dotty-staging/silence-transforming-error
Silence a debug println
2 parents b1a3e6d + 3c7a682 commit 2d2038e

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)