Minor. Use safe cast in isStaticInlineClassReplacementDelegatingCall
This commit is contained in:
+1
-1
@@ -130,7 +130,7 @@ private fun IrFunction.isBridgeToSuspendImplMethod(): Boolean =
|
|||||||
|
|
||||||
private fun IrFunction.isStaticInlineClassReplacementDelegatingCall(): Boolean =
|
private fun IrFunction.isStaticInlineClassReplacementDelegatingCall(): Boolean =
|
||||||
this is IrAttributeContainer && !isStaticInlineClassReplacement &&
|
this is IrAttributeContainer && !isStaticInlineClassReplacement &&
|
||||||
parentAsClass.declarations.find { it is IrAttributeContainer && it.attributeOwnerId == attributeOwnerId && it !== this }
|
(parent as? IrClass)?.declarations?.find { it is IrAttributeContainer && it.attributeOwnerId == attributeOwnerId && it !== this }
|
||||||
?.isStaticInlineClassReplacement == true
|
?.isStaticInlineClassReplacement == true
|
||||||
|
|
||||||
private val BRIDGE_ORIGINS = setOf(
|
private val BRIDGE_ORIGINS = setOf(
|
||||||
|
|||||||
Reference in New Issue
Block a user