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 @MetaSerializable annotation #1979

Merged
merged 5 commits into from
Jul 7, 2022
Merged

Add @MetaSerializable annotation #1979

merged 5 commits into from
Jul 7, 2022

Conversation

sandwwraith
Copy link
Member

No description provided.

core/commonMain/src/kotlinx/serialization/Annotations.kt Outdated Show resolved Hide resolved
core/commonMain/src/kotlinx/serialization/Annotations.kt Outdated Show resolved Hide resolved
core/commonMain/src/kotlinx/serialization/Annotations.kt Outdated Show resolved Hide resolved
* @see Serializer
*/
@Target(AnnotationTarget.ANNOTATION_CLASS)
//@Retention(AnnotationRetention.RUNTIME) // Runtime is the default retention, also see KT-41082
Copy link
Member

Choose a reason for hiding this comment

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

Does it affect JS IR as well? Is this feature implemented on JS legacy?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's supported on all IR backends. JS legacy not supported

Copy link
Member

Choose a reason for hiding this comment

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

Isn't the problem mentioned here specific only for JS legacy?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, but this file is compiled for all backends, and JS legacy compiler will issue a lengthy warning

sandwwraith and others added 2 commits July 4, 2022 17:52
Co-authored-by: Vsevolod Tolstopyatov <qwwdfsad@gmail.com>
@sandwwraith sandwwraith requested a review from qwwdfsad July 4, 2022 15:44
@sandwwraith sandwwraith merged commit c232772 into dev Jul 7, 2022
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.

3 participants