Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/properties/lazyValWithElvisToNothingInside.kt
T
2022-12-08 10:19:34 +00:00

15 lines
187 B
Kotlin
Vendored

// WITH_STDLIB
// ISSUE: KT-54668
interface A {
val list: List<String>
}
fun getA(): A? = null
val x by lazy {
(getA() ?: error("error")).list.associateBy {
it
}
}