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 a7b1514 commit c46b20bCopy full SHA for c46b20b
compiler/src/dotty/tools/dotc/core/Denotations.scala
@@ -977,7 +977,7 @@ object Denotations {
977
true
978
case MethodNotAMethodMatch =>
979
// Java allows defining both a field and a zero-parameter method with the same name
980
- !ctx.erasedTypes && !(symbol.is(JavaDefined) && other.symbol.is(JavaDefined))
+ !ctx.erasedTypes && !other.symbol.is(JavaDefined)
981
case ParamMatch =>
982
// The signatures do not tell us enough to be sure about matching
983
!ctx.erasedTypes && info.matches(other.info)
0 commit comments