[K2] Local property accessors are always default.
This commit is contained in:
committed by
Mikhail Glukhikh
parent
3795fc1106
commit
a6520a294b
+6
-5
@@ -960,11 +960,12 @@ class FirElementSerializer private constructor(
|
||||
// [FirDefaultPropertyAccessor]---a property accessor without body---can still hold other information, such as annotations,
|
||||
// user-contributed visibility, and modifiers, such as `external` or `inline`.
|
||||
val nonSourceAnnotations = accessor.nonSourceAnnotations(session)
|
||||
val isDefault = accessor is FirDefaultPropertyAccessor &&
|
||||
nonSourceAnnotations.isEmpty() &&
|
||||
accessor.visibility == property.visibility &&
|
||||
!accessor.isExternal &&
|
||||
!accessor.isInline
|
||||
val isDefault = property.isLocal ||
|
||||
(accessor is FirDefaultPropertyAccessor &&
|
||||
nonSourceAnnotations.isEmpty() &&
|
||||
accessor.visibility == property.visibility &&
|
||||
!accessor.isExternal &&
|
||||
!accessor.isInline)
|
||||
return Flags.getAccessorFlags(
|
||||
nonSourceAnnotations.isNotEmpty(),
|
||||
ProtoEnumFlags.visibility(normalizeVisibility(accessor)),
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// IGNORE K2
|
||||
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class Delegate<T>(val value: T? = null) {
|
||||
|
||||
Reference in New Issue
Block a user