Get rid of reduntant jvm parts in tests
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// FILE: 1.kt
|
||||
// WITH_RUNTIME
|
||||
|
||||
class My(val value: Int)
|
||||
|
||||
@@ -7,7 +7,7 @@ inline fun <T, R> T.perform(job: (T)-> R) : R {
|
||||
return job(this)
|
||||
}
|
||||
|
||||
public inline fun String.toInt2() : Int = java.lang.Integer.parseInt(this)
|
||||
public inline fun String.toInt2() : Int = this.toInt()
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// FILE: 1.kt
|
||||
// WITH_RUNTIME
|
||||
|
||||
class My(val value: Int)
|
||||
|
||||
@@ -19,7 +19,7 @@ inline fun <T, R> T.performWithFail2(job: (T)-> R, failJob : (e: RuntimeExceptio
|
||||
}
|
||||
}
|
||||
|
||||
public inline fun String.toInt2() : Int = java.lang.Integer.parseInt(this)
|
||||
public inline fun String.toInt2() : Int = this.toInt()
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// FILE: 1.kt
|
||||
// WITH_RUNTIME
|
||||
|
||||
@@ -22,7 +21,7 @@ inline fun <T, R> T.performWithFailFinally(job: (T)-> R, failJob : (e: RuntimeEx
|
||||
}
|
||||
}
|
||||
|
||||
inline fun String.toInt2() : Int = java.lang.Integer.parseInt(this)
|
||||
inline fun String.toInt2() : Int = this.toInt()
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user