6c6f2ccacd
to match an error message thrown from KType-based serializer<T>(). Fixes https://github.com/Kotlin/kotlinx.serialization/issues/2528
15 lines
305 B
Kotlin
Vendored
15 lines
305 B
Kotlin
Vendored
// CURIOUS_ABOUT: inner, outer
|
|
// WITH_STDLIB
|
|
|
|
import kotlinx.serialization.*
|
|
import kotlinx.serialization.json.*
|
|
import kotlinx.serialization.modules.*
|
|
import kotlin.reflect.typeOf
|
|
|
|
@Serializable
|
|
class Box<T>(val t: T)
|
|
|
|
inline fun <reified T> inner() = serializer<T>()
|
|
|
|
fun <T> outer() = inner<Box<T>>()
|