FIR: make declarations marked with 'override' implicitly open
#KT-52236 Fixed
This commit is contained in:
committed by
Space Team
parent
9c1a68fcec
commit
6af616d3c3
@@ -93,7 +93,7 @@ abstract class DataClassMembersGenerator(
|
||||
// data classes and corresponding properties can be non-final.
|
||||
// We should use getters for such properties (see KT-41284).
|
||||
val backingField = property.backingField
|
||||
return if (!forbidDirectFieldAccess && property.modality == Modality.FINAL && backingField != null) {
|
||||
return if (!forbidDirectFieldAccess && irClass.isFinalClass && backingField != null) {
|
||||
irGetField(receiver, backingField)
|
||||
} else {
|
||||
irCall(property.getter!!).apply {
|
||||
|
||||
Reference in New Issue
Block a user