Remove crossinline restriction from synchronized in js and common
#KT-20596 Fixed
This commit is contained in:
@@ -36,4 +36,4 @@ public annotation class Volatile
|
||||
public annotation class Synchronized
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> synchronized(@Suppress("UNUSED_PARAMETER") lock: Any, crossinline block: () -> R): R = block()
|
||||
public inline fun <R> synchronized(@Suppress("UNUSED_PARAMETER") lock: Any, block: () -> R): R = block()
|
||||
|
||||
@@ -95,7 +95,7 @@ expect fun Float.isFinite(): Boolean
|
||||
@Target(PROPERTY, FIELD)
|
||||
expect annotation class Volatile
|
||||
|
||||
inline expect fun <R> synchronized(lock: Any, crossinline block: () -> R): R
|
||||
public expect inline fun <R> synchronized(lock: Any, block: () -> R): R
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user