Files
kotlin-fork/compiler/testData/diagnostics/tests/generics/kt9203.kt
T
Alexander Udalov d022bb0248 Switch default JVM target to 1.8
#KT-29405 Fixed
2021-02-01 11:54:04 +01:00

12 lines
230 B
Kotlin
Vendored

// FIR_IDENTICAL
// FULL_JDK
import java.util.stream.Collectors
import java.util.stream.IntStream
fun main() {
val xs = IntStream.range(0, 10).mapToObj { it.toString() }
.collect(Collectors.toList())
xs[0]
}