Add contract for 'synchronized'

^KT-25962 Fixed
This commit is contained in:
Dmitry Savvinov
2018-07-26 14:58:50 +03:00
parent a81fc9e9bc
commit a8e1a6a2a1
6 changed files with 37 additions and 1 deletions
@@ -0,0 +1,11 @@
// !LANGUAGE: +ReadDeserializedContracts +UseCallsInPlaceEffect
fun test(lock: Any) {
val x: Int
synchronized(lock) {
x = 42
}
x.inc()
}