When upgrading Kotlin to `2.0.0-Beta4` with serial...
# serialization
r
When upgrading Kotlin to
2.0.0-Beta4
with serialization
1.6.3
I see these warnings when using
public typealias Decimal = @Serializable(with = DecimalSerializer::class) InternalDecimal
(following https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/serializers.md#specifying-serializer-globally-using-typealias):
Copy code
w: file:///home/rjaros/git/kilua/modules/kilua-common-types/src/jvmMain/kotlin/dev/kilua/types/serializers/DecimalSerializer.jvm.kt:39:5 Annotation `@Serializable(with = DecimalSerializer::class)` is missing on actual declaration.
All annotations from expect `dev.kilua.types.serializers.DecimalSerializer.deserialize` must be present with the same arguments on actual `dev.kilua.types.serializers.DecimalSerializer.deserialize`, otherwise they might behave incorrectly.
w: file:///home/rjaros/git/kilua/modules/kilua-common-types/src/jvmMain/kotlin/dev/kilua/types/serializers/DecimalSerializer.jvm.kt:43:5 Annotation `@Serializable(with = DecimalSerializer::class)` is missing on actual declaration.
All annotations from expect `dev.kilua.types.serializers.DecimalSerializer.serialize` must be present with the same arguments on actual `dev.kilua.types.serializers.DecimalSerializer.serialize`, otherwise they might behave incorrectly.
How can I fix this, because I don't have any annotations on expect and actual declarations?