[IR] update testdata: print a parameter in catch

This commit is contained in:
Zalim Bashorov
2020-11-10 03:52:31 +03:00
committed by teamcityserver
parent 2775c89ebb
commit 64b42401a1
5 changed files with 6 additions and 6 deletions
@@ -1,7 +1,7 @@
val test: Unit
field = try { // BLOCK
}
catch (...) { // BLOCK
catch (e: Throwable){ // BLOCK
}
get
@@ -13,7 +13,7 @@ fun box(): String {
try { // BLOCK
f() /*~> Unit */
}
catch (...) { // BLOCK
catch (e: Exception){ // BLOCK
result = "OK"
}
@@ -2,7 +2,7 @@ fun test(f: Function0<Unit>) {
return try { // BLOCK
f.invoke()
}
catch (...) { // BLOCK
catch (e: Exception){ // BLOCK
throw e
}
+2 -2
View File
@@ -2,7 +2,7 @@ fun test1() {
try { // BLOCK
println()
}
catch (...) { // BLOCK
catch (e: Throwable){ // BLOCK
println()
}
finally { // BLOCK
@@ -15,7 +15,7 @@ fun test2(): Int {
println()
42
}
catch (...) { // BLOCK
catch (e: Throwable){ // BLOCK
println()
24
}
@@ -5,7 +5,7 @@ fun testImplicitCast(a: Any) {
val t: String = try { // BLOCK
a
} /*as String */
catch (...) { // BLOCK
catch (e: Throwable){ // BLOCK
""
}