Yongshun Ye
Yongshun Ye
The Maven `test` phases pass locally. I moved Tuple.kt to the `java` source directory. Maybe this will work.
Good point. I tried this first but it doesn't work for the JS target. Now the only workaround I can think of is creating a `SerializableNothing` class and replacing `Nothing`...
Hi everyone. I have tried both workaround solutions, using contextual serializers and mapping `Nothing` to `SerializableNothing`, and it turned out the latter works better on Multiplatform. I managed to organize...
I guess you mean generic/parameterized types instead of higher-kinded types. If I am not wrong, higher-kinded types are not supported in Kotlin.
Thank you Dr. Wadler. I submitted a pull request. In the changes, I included a markdown link to the Wikipedia page, though I am not sure whether this is the...
Is this issue fixed on the JS target? By running the code below on the JS target: ```kotlin @Serializable class TestData(val value: T) serializer() Json.encodeToString(TestData(null)) ``` I get: > UnsupportedOperationException:...
# More details to discuss ## Current API design The current design is like this: ```kotlin @Serializable @UseSerialPolymorphicNumbers sealed class Sealed { @Serializable @SerialPolymorphicNumber(Sealed::class, 1) object Case : Sealed() }...
@pdvrieze Thanks for the reply. > The same outcome could be achieved with a custom implementation of a polymorphic serializer (that maps between numbers and serial names), that can be...
@recursive-rat4 Yeah perhaps "integer" is a better word. I still think using an `Int` or a `UInt` is a better idea here. Though it's unlikely that a parent class has...