Skip to content

Commit 4562d30

Browse files
committed
Fix debug output to make it more stable
Avoid printing addresses and reduce junk.
1 parent d1100ed commit 4562d30

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ class Namer { typer: Typer =>
336336
*/
337337
def enterSymbol(sym: Symbol)(implicit ctx: Context) = {
338338
if (sym.exists) {
339-
typr.println(s"entered: $sym in ${ctx.owner} and ${ctx.effectiveScope}")
339+
typr.println(s"entered: $sym in ${ctx.owner}")
340340
ctx.enter(sym)
341341
}
342342
sym

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ object ProtoTypes {
8383
def isMatchedBy(tp1: Type)(implicit ctx: Context) = true
8484
def map(tm: TypeMap)(implicit ctx: Context): ProtoType = this
8585
def fold[T](x: T, ta: TypeAccumulator[T])(implicit ctx: Context): T = x
86+
override def toString = getClass.toString
8687
}
8788

8889
/** A class marking ignored prototypes that can be revealed by `deepenProto` */

0 commit comments

Comments
 (0)