• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package bytecode_test
2 
3 import kotlinx.atomicfu.locks.*
4 import kotlin.test.*
5 
6 class SynchronizedObjectTest : SynchronizedObject() {
7     @Test
testSyncnull8     fun testSync() {
9         val result = synchronized(this) { bar() }
10         assertEquals("OK", result)
11     }
12 
barnull13     private fun bar(): String =
14         synchronized(this) {
15             "OK"
16         }
17 }
18