Skip to content

Silence a debug println #12257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions compiler/src/dotty/tools/dotc/core/Denotations.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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)
Expand Down