K2: fix exception in deserializer for external setter #KT-53031 Fixed
This commit is contained in:
+1
-4
@@ -287,10 +287,7 @@ class FirElementSerializer private constructor(
|
||||
}
|
||||
|
||||
val nonSourceAnnotations = setter.nonSourceAnnotations(session, property)
|
||||
if (setter !is FirDefaultPropertyAccessor ||
|
||||
nonSourceAnnotations.isNotEmpty() ||
|
||||
setter.visibility != property.visibility
|
||||
) {
|
||||
if (Flags.IS_NOT_DEFAULT.get(accessorFlags)) {
|
||||
val setterLocal = local.createChildSerializer(setter)
|
||||
for (valueParameterDescriptor in setter.valueParameters) {
|
||||
val annotations = nonSourceAnnotations.filter { it.useSiteTarget == AnnotationUseSiteTarget.SETTER_PARAMETER }
|
||||
|
||||
Reference in New Issue
Block a user