FIR2IR: create local classes on the fly properly

This commit is contained in:
Mikhail Glukhikh
2021-10-29 16:27:19 +03:00
committed by teamcity
parent a05244eca1
commit 67a05883d6
17 changed files with 516 additions and 67 deletions
@@ -0,0 +1,21 @@
// 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() {}
}