Skip to content

Commit

Permalink
Add missing parens
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky authored and BarkingBad committed Jul 23, 2021
1 parent f3c735e commit e4b2438
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions compiler/src/dotty/tools/dotc/transform/ElimRepeated.scala
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,9 @@ class ElimRepeated extends MiniPhase with InfoTransformer { thisPhase =>
private def parentHasVarargsAnnotation(sym: Symbol)(using Context) = sym.allOverriddenSymbols.exists(hasVarargsAnnotation)

private def isVarargsMethod(sym: Symbol)(using Context) =
hasVarargsAnnotation(sym) ||
hasRepeatedParams(sym) &&
overridesJava(sym)
|| sym.allOverriddenSymbols.exists(hasVarargsAnnotation)
hasVarargsAnnotation(sym)
|| hasRepeatedParams(sym)
&& (overridesJava(sym) || sym.allOverriddenSymbols.exists(hasVarargsAnnotation))

/** Eliminate repeated parameters from method types. */
private def elimRepeated(tp: Type, isJava: Boolean)(using Context): Type = tp.stripTypeVar match
Expand Down

0 comments on commit e4b2438

Please sign in to comment.