File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,8 @@ class ElimRepeated extends MiniPhase with InfoTransformer { thisPhase =>
8787 * signatures of a Java varargs method and a Scala varargs override are not the same.
8888 */
8989 private def overridesJava (sym : Symbol )(using Context ) =
90- sym.owner.info.baseClasses.drop(1 ).exists { bc =>
90+ sym.memberCanMatchInheritedSymbols
91+ && sym.owner.info.baseClasses.drop(1 ).exists { bc =>
9192 bc.is(JavaDefined ) && {
9293 val other = bc.info.nonPrivateDecl(sym.name)
9394 other.hasAltWith { alt =>
Original file line number Diff line number Diff line change 1+ class Bar extends Foo :
2+ def this (xs : String * ) = this ()
Original file line number Diff line number Diff line change 1+ public class Foo {
2+ public Foo (String ... xs ) { }
3+ }
You can’t perform that action at this time.
0 commit comments