[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
|
val test: Unit
|
||||||
field = try { // BLOCK
|
field = try { // BLOCK
|
||||||
}
|
}
|
||||||
catch (...) { // BLOCK
|
catch (e: Throwable){ // BLOCK
|
||||||
}
|
}
|
||||||
|
|
||||||
get
|
get
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ fun box(): String {
|
|||||||
try { // BLOCK
|
try { // BLOCK
|
||||||
f() /*~> Unit */
|
f() /*~> Unit */
|
||||||
}
|
}
|
||||||
catch (...) { // BLOCK
|
catch (e: Exception){ // BLOCK
|
||||||
result = "OK"
|
result = "OK"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ fun test(f: Function0<Unit>) {
|
|||||||
return try { // BLOCK
|
return try { // BLOCK
|
||||||
f.invoke()
|
f.invoke()
|
||||||
}
|
}
|
||||||
catch (...) { // BLOCK
|
catch (e: Exception){ // BLOCK
|
||||||
throw e
|
throw e
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -2,7 +2,7 @@ fun test1() {
|
|||||||
try { // BLOCK
|
try { // BLOCK
|
||||||
println()
|
println()
|
||||||
}
|
}
|
||||||
catch (...) { // BLOCK
|
catch (e: Throwable){ // BLOCK
|
||||||
println()
|
println()
|
||||||
}
|
}
|
||||||
finally { // BLOCK
|
finally { // BLOCK
|
||||||
@@ -15,7 +15,7 @@ fun test2(): Int {
|
|||||||
println()
|
println()
|
||||||
42
|
42
|
||||||
}
|
}
|
||||||
catch (...) { // BLOCK
|
catch (e: Throwable){ // BLOCK
|
||||||
println()
|
println()
|
||||||
24
|
24
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ fun testImplicitCast(a: Any) {
|
|||||||
val t: String = try { // BLOCK
|
val t: String = try { // BLOCK
|
||||||
a
|
a
|
||||||
} /*as String */
|
} /*as String */
|
||||||
catch (...) { // BLOCK
|
catch (e: Throwable){ // BLOCK
|
||||||
""
|
""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user