Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/annotations/JvmSyntheticOnDelegate.fir.kt
T

11 lines
321 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_ANONYMOUS_PARAMETER
import kotlin.properties.Delegates
class My {
@delegate:JvmSynthetic val s: String by lazy { "s" }
// Both Ok
@get:JvmSynthetic val t: String by lazy { "t" }
@set:JvmSynthetic var z: String by Delegates.observable("?") { prop, old, new -> old.hashCode() }
}