blob: 6730beef321d9a1e88170688fa278c7375599fff [file]
// RUN_PIPELINE_TILL: BACKEND
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 */