Skip to content

Commit eb8beaf

Browse files
shishkin-pavelSpace Cloud
authored and
Space Cloud
committed
[CMP] CMP-5680: fix function selection
metadata-added functions could be duplicated by number of files with the same package (KT-73135) Merge-request: KOTLIN-MR-1279 Merged-by: Pavel Shishkin <[email protected]>
1 parent 6eb3d5e commit eb8beaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/compose/compiler-hosted/src/main/java/androidx/compose/compiler/plugins/kotlin/lower/AbstractComposeLowering.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ abstract class AbstractComposeLowering(
818818

819819
private fun IrClass.getMetadataStabilityGetterFun(): IrSimpleFunctionSymbol? {
820820
val suitableFunctions = context.referenceFunctions(CallableId(this.packageFqName!!, uniqueStabilityGetterName()))
821-
return suitableFunctions.singleOrNull()
821+
return suitableFunctions.firstOrNull()
822822
}
823823

824824
private fun IrClass.getRuntimeStabilityValue(): IrExpression? {

0 commit comments

Comments
 (0)