Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolveWithStdlib/delegates/sequentialLazy.kt
T
Mikhail Glukhikh a4df0aaa7d FIR: Add test
2021-12-15 22:23:08 +03:00

13 lines
370 B
Kotlin
Vendored

class Some(classNames: () -> Collection<String>) {
internal val first by lazy {
classNames().toSet()
}
private val second by lazy {
val nonDeclaredNames = getNonDeclaredClassifierNames() ?: return@lazy null
val allNames = first + nonDeclaredNames
allNames
}
fun getNonDeclaredClassifierNames(): Set<String>? = null
}