``` /** * Signifies that the corresponding proper...
# compiler
m
Copy code
/**
 * Signifies that the corresponding property has a getter.
 */
@JvmField
val HAS_GETTER = Flag(F.HAS_GETTER)
Can there ever be a property without a getter in the Kotlin metadata?
l
I think so, when you have an
@JvmField
, it's still a property Kotlin-wise
m
Even a property with
@JvmField
still has
HAS_GETTER
set but no getter method generated.
🤔 1
that said, there is a mean trick to make properties with inaccessable getter. But even those still have the HAS_SETTER flag
m
Oh I missed that answer somehow. Good to know, thanks. I also can't think of a good use case right now for a setter-only property 🤔