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

Add annotations from expect entity to actual entity. Required after KT-58551 #2388

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

woainikk
Copy link
Contributor

@woainikk woainikk commented Aug 2, 2023

@shanshin
Copy link
Contributor

shanshin commented Aug 2, 2023

@woainikk, should these annotations be placed on the remaining actual FormatLanguage classes?

AnnotationTarget.VALUE_PARAMETER,
AnnotationTarget.LOCAL_VARIABLE,
AnnotationTarget.ANNOTATION_CLASS
)
public actual annotation class FormatLanguage(
Copy link
Member

Choose a reason for hiding this comment

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

There's an actual annotation class FormatLanguage in JS source set, too

Also, what does the new rule says about actual typealias? We have this in JVM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed for Js source set.
"Annotations with retention SOURCE on expect are not checked if actual is typealias to compiled code." - and there is no compiler errors except error with FormatLanguage

Copy link
Member

Choose a reason for hiding this comment

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

But kotlin.Target has default retention (runtime)

Copy link
Member

@sandwwraith sandwwraith left a comment

Choose a reason for hiding this comment

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

.

@woainikk woainikk merged commit 416e20a into dev Aug 3, 2023
@woainikk woainikk deleted the bobova/fixForKT-58551 branch November 12, 2024 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants