We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8b1639 commit d722435Copy full SHA for d722435
src/dotty/tools/dotc/typer/Checking.scala
@@ -313,7 +313,7 @@ trait Checking {
313
def ofType = if (decl.isType) "" else d": ${other.info}"
314
def explanation =
315
if (!decl.isRealMethod) ""
316
- else "\n (both definitions have the same erased type signature)"
+ else "\n (the definitions have matching type signatures)"
317
ctx.error(d"$decl is already defined as $other$ofType$explanation", decl.pos)
318
}
319
if (decl is Synthetic) doubleDefError(other, decl)
0 commit comments