We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cd25fc commit f2cadd5Copy full SHA for f2cadd5
compiler/src/dotty/tools/dotc/core/TypeOps.scala
@@ -187,7 +187,7 @@ object TypeOps:
187
/** a faster version of cs1 intersect cs2 */
188
def intersect(cs1: List[ClassSymbol], cs2: List[ClassSymbol]): List[ClassSymbol] = {
189
val cs2AsSet = new util.HashSet[ClassSymbol](128)
190
- cs2.foreach(cs2AsSet +=)
+ cs2.foreach(cs2AsSet += _)
191
cs1.filter(cs2AsSet.contains)
192
}
193
0 commit comments