Skip to content

Conversation

@derekxu16
Copy link
Collaborator

Compilation of overrides of @Composable methods can fail when the methods are arranged across packages in certain ways, e.g. how they are arranged in
ComposeCrossModuleTests.testLegacyOpenFunctionWithDefaultFalsePositives. This CL fixes the root cause of the failures by making IrSimpleFunction.isLegacyOpenFunctionWithDefault account for the fact that composeMetadata can only appear on the root of an override tree.

Test: ComposeCrossModuleTests.testLegacyOpenFunctionWithDefaultFalsePositives
Bug: 461766771

Compilation of overrides of `@Composable` methods can fail when the
methods are arranged across packages in certain ways, e.g. how they are
arranged in
`ComposeCrossModuleTests.testLegacyOpenFunctionWithDefaultFalsePositives`.
This CL fixes the root cause of the failures by making
`IrSimpleFunction.isLegacyOpenFunctionWithDefault` account for the fact
that `composeMetadata` can only appear on the root of an override tree.

Test: ComposeCrossModuleTests.testLegacyOpenFunctionWithDefaultFalsePositives
Bug: 461766771
@derekxu16 derekxu16 force-pushed the prr/derekx/fix-is-legacy-open-function-with-default branch from b84ea20 to f504531 Compare December 8, 2025 20:50
@derekxu16 derekxu16 changed the title Fix compilation of overrides of @Composable methods Fix IrSimpleFunction.isLegacyOpenFunctionWithDefault Dec 8, 2025
@ShikaSD
Copy link
Collaborator

ShikaSD commented Dec 8, 2025

Let's also request a cherry-pick to 2.3.10, this seems pretty significant for the internal build.

@derekxu16
Copy link
Collaborator Author

/safe-merge

@KotlinBuild
Copy link

Quality gate is triggered at https://buildserver.labs.intellij.net/build/837559140 — use this link to get full insight.

Quality gate was triggered with the following revisions:

kotlin
Branch: refs/merge/GITHUB-5588/safe-merge
Commit: b1981eb

@KotlinBuild
Copy link

Quality gate finished successfully.

@KotlinBuild KotlinBuild merged commit 843d70a into master Dec 9, 2025
1 check passed
@KotlinBuild KotlinBuild deleted the prr/derekx/fix-is-legacy-open-function-with-default branch December 9, 2025 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants