Skip to content

Commit d722435

Browse files
committed
Fix #597: Improve double def error message
1 parent c8b1639 commit d722435

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ trait Checking {
313313
def ofType = if (decl.isType) "" else d": ${other.info}"
314314
def explanation =
315315
if (!decl.isRealMethod) ""
316-
else "\n (both definitions have the same erased type signature)"
316+
else "\n (the definitions have matching type signatures)"
317317
ctx.error(d"$decl is already defined as $other$ofType$explanation", decl.pos)
318318
}
319319
if (decl is Synthetic) doubleDefError(other, decl)

0 commit comments

Comments
 (0)