mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
11 lines
265 B
Kotlin
Vendored
11 lines
265 B
Kotlin
Vendored
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 }
|
|
}
|