Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove @PublishedApi from unwrap to comply with new compiler resriction #3810

Merged
merged 1 commit into from
Jul 18, 2023
Merged

Remove @PublishedApi from unwrap to comply with new compiler resriction #3810

merged 1 commit into from
Jul 18, 2023

Conversation

merfemor
Copy link
Contributor

@merfemor merfemor commented Jul 18, 2023

In https://youtrack.jetbrains.com/issue/KT-58551 we require all annotations from expect declaration to be present on actual.
unwrap violates this by having @PublishedApi only on expect.
This blocks merge of PR in KT-58551.

Currently, unwrap is not called from public inline functions.
Looks like just removing annotation is a safe fix.

…riction

In KT-58551 we require all annotations from expect declaration to be
present on actual.

Currently, `unwrap` is not called from public inline functions.
We can safely remove it.
@qwwdfsad qwwdfsad self-requested a review July 18, 2023 10:29
@qwwdfsad qwwdfsad added the kotlin-merge-blocker PRs labeled as merge-blockers are effectively preventing a corresponding merge into main Kotlin repo label Jul 18, 2023
@qwwdfsad qwwdfsad requested a review from mshishkina July 18, 2023 12:45
@qwwdfsad qwwdfsad merged commit 2bd0f29 into Kotlin:develop Jul 18, 2023
@merfemor merfemor deleted the Roman.Efremov/MR/expect-actual-annotations branch July 18, 2023 14:46
merfemor added a commit that referenced this pull request Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kotlin-merge-blocker PRs labeled as merge-blockers are effectively preventing a corresponding merge into main Kotlin repo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants