We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41b3996 commit 7dca5edCopy full SHA for 7dca5ed
core/commonMain/src/kotlinx/serialization/descriptors/SerialDescriptors.kt
@@ -39,7 +39,7 @@ import kotlin.reflect.*
39
*
40
* class CustomSerializer<T>(tSerializer: KSerializer<T>): KSerializer<BoxedList<T>> {
41
* // here we use tSerializer.descriptor because it represents T
42
- * override val descriptor = SerialDescriptor("pkg.BoxedList", CLASS, typeParamSerializer.descriptor) {
+ * override val descriptor = SerialDescriptor("pkg.BoxedList", CLASS, tSerializer.descriptor) {
43
* // here we have to wrap it with List first, because property has type List<T>
44
* element("list", ListSerializer(tSerializer).descriptor) // or listSerialDescriptor(tSerializer.descriptor)
45
* }
0 commit comments