Skip to content

Commit f2cadd5

Browse files
committed
Avoid postfixops
1 parent 3cd25fc commit f2cadd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/TypeOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ object TypeOps:
187187
/** a faster version of cs1 intersect cs2 */
188188
def intersect(cs1: List[ClassSymbol], cs2: List[ClassSymbol]): List[ClassSymbol] = {
189189
val cs2AsSet = new util.HashSet[ClassSymbol](128)
190-
cs2.foreach(cs2AsSet +=)
190+
cs2.foreach(cs2AsSet += _)
191191
cs1.filter(cs2AsSet.contains)
192192
}
193193

0 commit comments

Comments
 (0)