Skip to content

Kotlin: Handle IrExternalPackageFragment properly for more external entities#14334

Merged
igfoo merged 2 commits intogithub:mainfrom
igfoo:igfoo/ext-frag
Sep 28, 2023
Merged

Kotlin: Handle IrExternalPackageFragment properly for more external entities#14334
igfoo merged 2 commits intogithub:mainfrom
igfoo:igfoo/ext-frag

Conversation

@igfoo
Copy link
Member

@igfoo igfoo commented Sep 28, 2023

If the parent is an IrExternalPackageFragment then parentAsClass was just crashing.

Will be tested by the Kotlin 2 testsuite.

@igfoo igfoo marked this pull request as ready for review September 28, 2023 12:56
@igfoo igfoo requested a review from a team as a code owner September 28, 2023 12:56
tamasvajk
tamasvajk previously approved these changes Sep 28, 2023
Comment on lines +306 to +307
// The parent is a (multi)file class. We don't need
// extract it separately.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is copied, but it doesn't make sense. Do we miss a to at the end of the first line?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, ta; fixed

@igfoo igfoo merged commit 30d7f0c into github:main Sep 28, 2023
@igfoo igfoo deleted the igfoo/ext-frag branch September 28, 2023 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants