Files
kotlin-fork/compiler/testData/diagnostics/tests/targetedBuiltIns/stream.fir.kt
T
2020-01-30 17:12:50 +03:00

14 lines
301 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
// FULL_JDK
import java.util.stream.*
interface A : Collection<String> {
override fun stream(): Stream<String> = Stream.of()
}
fun foo(x: List<String>, y: A) {
x.stream().filter { it.length > 0 }.collect(Collectors.toList())
y.stream().filter { it.length > 0 }
}