File tree 1 file changed +3
-4
lines changed
compiler/src/dotty/tools/dotc/transform
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 =>
100
100
private def parentHasVarargsAnnotation (sym : Symbol )(using Context ) = sym.allOverriddenSymbols.exists(hasVarargsAnnotation)
101
101
102
102
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))
107
106
108
107
/** Eliminate repeated parameters from method types. */
109
108
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