Skip to content

Commit abf4b45

Browse files
committed
Add missing parens
1 parent 8130c32 commit abf4b45

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

compiler/src/dotty/tools/dotc/transform/ElimRepeated.scala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)