Skip to content

Commit 375de0b

Browse files
committed
Don't print flags in "has same type after erasure" errors.
This was accidentally left in the code, was intended only for debugging.
1 parent 7e0e9ac commit 375de0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/transform/ElimErasedValueType.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ class ElimErasedValueType extends MiniPhaseTransform with InfoTransformer {
8989
if (!info1.matchesLoosely(info2))
9090
ctx.error(
9191
em"""double definition:
92-
|$sym1: $info1 in ${sym1.owner} ${sym1.flags} and
93-
|$sym2: $info2 in ${sym2.owner} ${sym2.flags}
92+
|$sym1: $info1 in ${sym1.owner} and
93+
|$sym2: $info2 in ${sym2.owner}
9494
|have same type after erasure: $info""",
9595
root.pos)
9696
}

0 commit comments

Comments
 (0)