FIR2IR: create local classes on the fly properly
This commit is contained in:
committed by
teamcity
parent
a05244eca1
commit
67a05883d6
@@ -0,0 +1,33 @@
|
||||
class Serializer {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
fun serialize() {
|
||||
val messageCollector: <no name provided> = <this>.createMessageCollector()
|
||||
try { // BLOCK
|
||||
}
|
||||
catch (e: Throwable){ // BLOCK
|
||||
messageCollector.flush()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private fun createMessageCollector(): <no name provided> {
|
||||
return { // BLOCK
|
||||
local class <no name provided> : Collector {
|
||||
constructor() /* primary */ {
|
||||
super/*Collector*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
<no name provided>()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user