Skip to content

Commit

Permalink
Compose compiler: Do not add HiddenFromObjC annotation twice
Browse files Browse the repository at this point in the history
The metadata-visible annotation should be added using only the appropriate API:
`addMetadataVisibleAnnotationsToElement`

Fixes KT-69876

A followup to investigate the root cause: CMP-5670
  • Loading branch information
Oleksandr Karpovich committed Jul 15, 2024
1 parent c022606 commit f3f8d94
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,6 @@ abstract class AbstractComposeLowering(
returnType = stabilityField.type
visibility = DescriptorVisibilities.PUBLIC
origin = IrDeclarationOrigin.GeneratedByPlugin(ComposeCompilerKey)
annotations = listOf(hiddenFromObjCAnnotation)
}.also { fn ->
fn.parent = parent
fn.body = DeclarationIrBuilder(context, fn.symbol).irBlockBody {
Expand Down

0 comments on commit f3f8d94

Please sign in to comment.