Fir2IrLazyProperty: simplify backing field check a little bit
This commit is contained in:
committed by
Space Team
parent
71456c5514
commit
c2135b72c4
@@ -114,12 +114,7 @@ class Fir2IrLazyProperty(
|
||||
}
|
||||
|
||||
override var backingField: IrField? by lazyVar(lock) {
|
||||
// TODO: this checks are very preliminary, FIR resolve should determine backing field presence itself
|
||||
val parent = parent
|
||||
when {
|
||||
!fir.isConst && (fir.modality == Modality.ABSTRACT || parent is IrClass && parent.isInterface) -> {
|
||||
null
|
||||
}
|
||||
fir.hasExplicitBackingField -> {
|
||||
with(declarationStorage) {
|
||||
val backingFieldType = with(typeConverter) {
|
||||
|
||||
Reference in New Issue
Block a user