[FIR2IR] Enter scope a bit earlier in createIrPropertyAccessor
This commit is contained in:
committed by
teamcityserver
parent
59c86bcdc4
commit
8ecf056927
+3
-1
@@ -613,12 +613,14 @@ class Fir2IrDeclarationStorage(
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
// NB: we should enter accessor' scope before declaring its parameters
|
||||||
|
// (both setter default and receiver ones, if any)
|
||||||
|
enterScope(this)
|
||||||
if (propertyAccessor == null && isSetter) {
|
if (propertyAccessor == null && isSetter) {
|
||||||
declareDefaultSetterParameter(
|
declareDefaultSetterParameter(
|
||||||
property.returnTypeRef.toIrType(ConversionTypeContext.DEFAULT.inSetter())
|
property.returnTypeRef.toIrType(ConversionTypeContext.DEFAULT.inSetter())
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
enterScope(this)
|
|
||||||
bindAndDeclareParameters(
|
bindAndDeclareParameters(
|
||||||
propertyAccessor, irParent,
|
propertyAccessor, irParent,
|
||||||
thisReceiverOwner, isStatic = irParent !is IrClass, parentPropertyReceiverType = property.receiverTypeRef
|
thisReceiverOwner, isStatic = irParent !is IrClass, parentPropertyReceiverType = property.receiverTypeRef
|
||||||
|
|||||||
Reference in New Issue
Block a user