Skip to content

Commit 14051fb

Browse files
committed
Merge pull request #600 from smarter/fix/overriden-message
Fix #597: Improve double def error message
2 parents c8b1639 + d722435 commit 14051fb

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)