[FIR] Add VOLATILE_ON_VALUE/VOLATILE_ON_DELEGATE diagnostic
This commit is contained in:
committed by
TeamCityServer
parent
f90b534c4c
commit
7ba8e0d9cc
@@ -1,13 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_ANONYMOUS_PARAMETER
|
||||
import kotlin.jvm.Volatile
|
||||
import kotlin.properties.Delegates
|
||||
|
||||
class My {
|
||||
@Volatile val x = 0
|
||||
// ok
|
||||
@Volatile var y = 1
|
||||
|
||||
@delegate:Volatile var z: String by Delegates.observable("?") { prop, old, new -> old.hashCode() }
|
||||
|
||||
@field:Volatile val w = 2
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -UNUSED_ANONYMOUS_PARAMETER
|
||||
import kotlin.jvm.Volatile
|
||||
import kotlin.properties.Delegates
|
||||
|
||||
Reference in New Issue
Block a user