[IR] KotlinLikeDumper: print a parameter in catch

This commit is contained in:
Zalim Bashorov
2020-11-10 03:53:38 +03:00
committed by teamcityserver
parent 5c8a93c7ff
commit 2775c89ebb
@@ -1183,7 +1183,13 @@ private class KotlinLikeDumper(val p: Printer, val options: KotlinLikeDumpOption
}
override fun visitCatch(aCatch: IrCatch, data: IrDeclaration?) {
p.print("catch (...) ")
p.print("catch (")
aCatch.catchParameter.run {
p.printWithNoIndent(name.asString())
p.printWithNoIndent(": ")
type.printTypeWithNoIndent()
}
p.printWithNoIndent(")")
aCatch.result.accept(this, data)
p.printlnWithNoIndent()
}