File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -100,10 +100,9 @@ class ElimRepeated extends MiniPhase with InfoTransformer { thisPhase =>
100100 private def parentHasVarargsAnnotation (sym : Symbol )(using Context ) = sym.allOverriddenSymbols.exists(hasVarargsAnnotation)
101101
102102 private def isVarargsMethod (sym : Symbol )(using Context ) =
103- hasVarargsAnnotation(sym) ||
104- hasRepeatedParams(sym) &&
105- overridesJava(sym)
106- || sym.allOverriddenSymbols.exists(hasVarargsAnnotation)
103+ hasVarargsAnnotation(sym)
104+ || hasRepeatedParams(sym)
105+ && (overridesJava(sym) || sym.allOverriddenSymbols.exists(hasVarargsAnnotation))
107106
108107 /** Eliminate repeated parameters from method types. */
109108 private def elimRepeated (tp : Type , isJava : Boolean )(using Context ): Type = tp.stripTypeVar match
You can’t perform that action at this time.
0 commit comments