JvmSynthetic forbidden for delegated properties (and searched for different use-site targets)
This commit is contained in:
+9
@@ -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() }
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package
|
||||
|
||||
public final class My {
|
||||
public constructor My()
|
||||
@delegate:kotlin.jvm.JvmSynthetic() public final val s: kotlin.String
|
||||
public final val t: kotlin.String
|
||||
public final var z: kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
Reference in New Issue
Block a user