Files
kotlin-fork/compiler/testData/ir/irText/firProblems/FlushFromAnonymous.kt
T
2023-03-22 15:18:17 +00:00

24 lines
427 B
Kotlin
Vendored

// 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() {}
}