[IR] update testdata: print a parameter in catch
This commit is contained in:
committed by
teamcityserver
parent
2775c89ebb
commit
64b42401a1
+1
-1
@@ -1,7 +1,7 @@
|
||||
val test: Unit
|
||||
field = try { // BLOCK
|
||||
}
|
||||
catch (...) { // BLOCK
|
||||
catch (e: Throwable){ // BLOCK
|
||||
}
|
||||
|
||||
get
|
||||
|
||||
+1
-1
@@ -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
@@ -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
|
||||
""
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user