Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/inference/unitUpperBound.kt
T
2021-05-20 17:24:44 +03:00

12 lines
144 B
Kotlin
Vendored

// WITH_STDLIB
// FULL_JDK
class A {
fun foo(x: List<String>) {
var w = 1
x.ifEmpty {
w += 2
}
}
}