Files
Leonid Startsev fba2f5ea4e Expand most kotlinx.serialization tests on JS backend
to enhance and increase test coverage of the plugin.
2024-01-10 12:17:34 +00:00

15 lines
271 B
Kotlin
Vendored

// WITH_STDLIB
import kotlinx.serialization.*
@Serializable(with = ContextualSerializer::class)
class Ref(
val id: String,
)
fun box(): String {
val kind = Ref.serializer().descriptor.kind.toString()
if (kind != "CONTEXTUAL") return kind
return "OK"
}