KT-7819 Borrow tests for non-local returns from JVM backend
This commit is contained in:
@@ -13,6 +13,8 @@ inline fun foo(f: () -> Unit) {
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
// TODO: enabled when KT-6397 gets fixed
|
||||
// TARGET_BACKEND: JVM
|
||||
import test.*
|
||||
|
||||
var p = "fail"
|
||||
|
||||
Vendored
+1
-1
@@ -21,7 +21,7 @@ fun call(): String {
|
||||
}
|
||||
|
||||
inline fun nonLocal(): String {
|
||||
mysynchronized(Object()) {
|
||||
mysynchronized("__LOCK__") {
|
||||
return "nonLocal"
|
||||
}
|
||||
return "local"
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ fun monitorCall(lock: Any) {
|
||||
import test.*
|
||||
|
||||
public class ClassA {
|
||||
val LOCK = Object()
|
||||
val LOCK = "__LOCK__"
|
||||
|
||||
var result = "fail"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user