blob: 1ded9f3028fe5d26939f727980280232809b86bf [file]
// TARGET_BACKEND: JVM_IR
// WITH_STDLIB
// ISSUE: KT-54767
interface A {
fun getCallableNames(): Set<String>
}
class B(val declared: A, val supers: List<A>) {
private val callableNamesCached by lazy(LazyThreadSafetyMode.PUBLICATION) {
buildSet {
addAll(declared.getCallableNames())
supers.flatMapTo(this) { it.getCallableNames() }
}
}
}
fun box() = "OK"