[FIR] Add JVM_SYNTHETIC_ON_DELEGATE diagnostic

Extract JVM names to common JvmNames
This commit is contained in:
Ivan Kochurkin
2021-08-30 22:12:06 +03:00
committed by TeamCityServer
parent 3725c58794
commit 2baed77598
35 changed files with 113 additions and 57 deletions
@@ -1,10 +0,0 @@
// !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() }
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_ANONYMOUS_PARAMETER
import kotlin.properties.Delegates