blob: 2b601d118054ffec045cf8d08a9e1149de88ce37 [file]
// RUN_PIPELINE_TILL: CODEGEN
interface Diagnostic {
val name: String
}
fun foo(conflicting: List<Diagnostic>) {
val filtered = arrayListOf<Diagnostic>()
conflicting.groupBy {
it.name
}.forEach {
val diagnostics = it.value
filtered.addAll(
diagnostics.filter { me ->
diagnostics.none { other ->
me != other
}
}
)
}
}
/* GENERATED_FIR_TAGS: equalityExpression, functionDeclaration, interfaceDeclaration, lambdaLiteral, localProperty,
propertyDeclaration */