Files
kotlin-fork/compiler/testData/ir/irText/firProblems/FlushFromAnonymous.kt
T
2024-02-16 10:19:38 +00:00

25 lines
444 B
Kotlin
Vendored

// FIR_IDENTICAL
// TARGET_BACKEND: JVM_IR
// SKIP_KLIB_TEST
// FILE: Collector.java
public class Collector {
public void flush() {}
}
// FILE: FlushFromAnonymous.kt
class Serializer() {
fun serialize() {
val messageCollector = createMessageCollector()
try {
} catch (e: Throwable) {
messageCollector.flush()
}
}
private fun createMessageCollector() = object : Collector() {}
}