Skip to content

Commit cd2f10c

Browse files
committed
remove debug output
1 parent 15732b1 commit cd2f10c

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

compiler/src/dotty/tools/dotc/typer/Checking.scala

-2
Original file line numberDiff line numberDiff line change
@@ -1108,8 +1108,6 @@ trait Checking {
11081108
then
11091109
val conflicting = effectiveOwner.info.member(sym.name.toTypeName).symbol
11101110
if conflicting.exists then
1111-
println(s"checkNoModuleClash: sym: ${sym.fullName}, effectiveOwner=${effectiveOwner.className}")
1112-
Thread.dumpStack()
11131111
report.error(AlreadyDefined(sym.name, effectiveOwner, conflicting), sym.srcPos)
11141112

11151113
/** Check that `tp` is a class type.

compiler/src/dotty/tools/dotc/typer/Namer.scala

-3
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ class Namer { typer: Typer =>
142142
val other =
143143
if conflicting.is(ConstructorProxy) then conflicting.companionClass
144144
else conflicting
145-
Thread.dumpStack()
146145
report.error(AlreadyDefined(name, owner, other), ctx.source.atSpan(span))
147146
conflictsDetected = true
148147

@@ -158,8 +157,6 @@ class Namer { typer: Typer =>
158157
// test: conflict if package objects have the same name but come from different
159158
// sources. See i9252.
160159
then
161-
println(s"preExisting.associatedFile = ${preExisting.associatedFile}")
162-
println(s"ctx.source.file = ${ctx.source.file}")
163160
conflict(preExisting)
164161

165162
def pkgObjs(pkg: Symbol) =

compiler/src/dotty/tools/dotc/typer/Typer.scala

-1
Original file line numberDiff line numberDiff line change
@@ -3359,7 +3359,6 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
33593359
}
33603360
case _ =>
33613361
// Package will not exist if a duplicate type has already been entered, see `tests/neg/1708.scala`
3362-
Thread.dumpStack()
33633362
errorTree(tree,
33643363
if pkg.exists then PackageNameAlreadyDefined(pkg)
33653364
else em"package ${tree.pid.name} does not exist")

0 commit comments

Comments
 (0)