Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolveWithStdlib/inference/complexConstraintSystem.kt
T
2020-03-19 09:51:01 +03:00

5 lines
134 B
Kotlin
Vendored

class Inv<X>(val x: X)
fun test_0(list: List<Int>, b: Boolean) {
val x = list.mapNotNull { if (b) Inv(it) else null }.first().x
}