Skip to content

Commit

Permalink
[CMP] CMP-5680: fix function selection
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
shishkin-pavel authored and Space Cloud committed Jan 15, 2025
1 parent 6eb3d5e commit eb8beaf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ abstract class AbstractComposeLowering(

private fun IrClass.getMetadataStabilityGetterFun(): IrSimpleFunctionSymbol? {
val suitableFunctions = context.referenceFunctions(CallableId(this.packageFqName!!, uniqueStabilityGetterName()))
return suitableFunctions.singleOrNull()
return suitableFunctions.firstOrNull()
}

private fun IrClass.getRuntimeStabilityValue(): IrExpression? {
Expand Down

0 comments on commit eb8beaf

Please sign in to comment.