KT-55268 Make k.c.Volatile stable

This commit is contained in:
Ilya Gorbunov
2023-04-05 14:14:59 +02:00
committed by Space Team
parent 2dbff89098
commit b8da3e69ce
8 changed files with 4 additions and 17 deletions
@@ -1,6 +1,5 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_ANONYMOUS_PARAMETER
// !API_VERSION: 1.9
// !LANGUAGE: +MultiPlatformProjects
// MODULE: common
@@ -9,7 +8,6 @@
import kotlin.concurrent.Volatile
import kotlin.properties.Delegates
@OptIn(ExperimentalStdlibApi::class)
class ConcurrentVolatile {
<!VOLATILE_ON_VALUE!>@Volatile<!> val x = 0
// ok
@@ -32,7 +30,6 @@ import kotlin.jvm.Volatile as JvmVolatile
import kotlin.concurrent.Volatile
import kotlin.properties.Delegates
@OptIn(ExperimentalStdlibApi::class)
class ConcurrentVolatileOnJvm {
<!VOLATILE_ON_VALUE!>@Volatile<!> val x = 0
// ok