Add contract for 'synchronized'
^KT-25962 Fixed
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
// !LANGUAGE: +ReadDeserializedContracts +UseCallsInPlaceEffect
|
||||
|
||||
fun test(lock: Any) {
|
||||
val x: Int
|
||||
|
||||
synchronized(lock) {
|
||||
x = 42
|
||||
}
|
||||
|
||||
x.inc()
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package
|
||||
|
||||
public fun test(/*0*/ lock: kotlin.Any): kotlin.Unit
|
||||
Reference in New Issue
Block a user