Get rid of reduntant jvm parts in tests
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
class A(var value: String)
|
||||
|
||||
fun box(): String {
|
||||
@@ -7,7 +5,7 @@ fun box(): String {
|
||||
|
||||
try {
|
||||
test(a)
|
||||
} catch(e: java.lang.RuntimeException) {
|
||||
} catch(e: RuntimeException) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
class A(var value: String)
|
||||
|
||||
fun box(): String {
|
||||
@@ -7,7 +5,7 @@ fun box(): String {
|
||||
|
||||
try {
|
||||
test(a)
|
||||
} catch(e: java.lang.RuntimeException) {
|
||||
} catch(e: RuntimeException) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
class A(var value: String)
|
||||
|
||||
fun box(): String {
|
||||
@@ -7,7 +5,7 @@ fun box(): String {
|
||||
|
||||
try {
|
||||
test(a)
|
||||
} catch(e: java.lang.RuntimeException) {
|
||||
} catch(e: RuntimeException) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
fun box(): String {
|
||||
var cycle = true;
|
||||
while (true) {
|
||||
if (true || throw java.lang.RuntimeException()) {
|
||||
if (true || throw RuntimeException()) {
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user