We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03e4ab3 commit 06c7a51Copy full SHA for 06c7a51
compiler/src/dotty/tools/dotc/typer/Checking.scala
@@ -623,10 +623,6 @@ trait Checking {
623
typr.println(i"conflict? $decl $other")
624
if (decl.matches(other)) {
625
def doubleDefError(decl: Symbol, other: Symbol): Unit = {
626
- def ofType = if (decl.isType) "" else em": ${other.info}"
627
- def explanation =
628
- if (!decl.isRealMethod) ""
629
- else "\n(the definitions have matching type signatures)"
630
ctx.error(DoubleDeclaration(decl, other), decl.pos)
631
}
632
if (decl is Synthetic) doubleDefError(other, decl)
0 commit comments