Robert Jaros
03/01/2024, 3:54 PM2.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):
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.
Robert Jaros
03/01/2024, 3:57 PMRobert Jaros
03/01/2024, 3:58 PM