blob: 8b0ad51f63a6537005b018a7681e05a9db659173 [file]
// RUN_PIPELINE_TILL: CODEGEN
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
}
/* GENERATED_FIR_TAGS: additiveExpression, classDeclaration, elvisExpression, functionDeclaration, functionalType,
lambdaLiteral, localProperty, nullableType, primaryConstructor, propertyDeclaration, propertyDelegate */