JvmSynthetic forbidden for delegated properties (and searched for different use-site targets)

This commit is contained in:
Mikhail Glukhikh
2016-01-15 17:56:50 +03:00
parent a2bba7c8f1
commit e4f7446bec
9 changed files with 78 additions and 8 deletions
@@ -0,0 +1,9 @@
import kotlin.properties.Delegates
class My {
<!JVM_SYNTHETIC_ON_DELEGATE!>@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() }
}