23 lines
569 B
Kotlin
Vendored
23 lines
569 B
Kotlin
Vendored
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
|
|
// FIR_IDENTICAL
|
|
// WITH_STDLIB
|
|
// SKIP_TXT
|
|
import kotlinx.serialization.*
|
|
import kotlinx.serialization.descriptors.*
|
|
import kotlinx.serialization.encoding.*
|
|
import java.util.*
|
|
|
|
|
|
@Serializer(forClass = Date::class)
|
|
object DateSerializer : KSerializer<Date> {
|
|
override val descriptor: SerialDescriptor = PrimitiveSerialDescriptor("java.util.Date", PrimitiveKind.STRING)
|
|
|
|
override fun serialize(encoder: Encoder, value: Date) {
|
|
TODO()
|
|
}
|
|
|
|
override fun deserialize(decoder: Decoder): Date {
|
|
TODO()
|
|
}
|
|
}
|