Marc Knaup
02/01/2019, 9:27 PMMetadata
note which primary constructor parameters are also properties?udalov
class A(val x: String)
and
class A(x: String) {
val x: String = x
}
Storing the "is primary constructor property" flag in the metadata is of course possible, but would lead to a way for annotation processors and others to use that flag in a way that would introduce a difference between the two above programs.
Related issue: https://youtrack.jetbrains.com/issue/KT-8849Marc Knaup
02/05/2019, 11:47 AM!Flag.PropertyAccessor.IS_NOT_DEFAULT(getterFlags)
to select which properties are encoded automatically by default.