From d82584b085f8cbefdef4b1db1c318a4689e4be73 Mon Sep 17 00:00:00 2001 From: Paul de Vrieze Date: Wed, 18 Dec 2019 10:48:44 +0100 Subject: [PATCH] Fix bug #22 by using the correct descriptor and index for polymorphic children serialization. --- .../kotlin/nl/adaptivity/xmlutil/serialization/XMLDecoder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serialization/src/commonMain/kotlin/nl/adaptivity/xmlutil/serialization/XMLDecoder.kt b/serialization/src/commonMain/kotlin/nl/adaptivity/xmlutil/serialization/XMLDecoder.kt index 464b097b3..740e88f17 100644 --- a/serialization/src/commonMain/kotlin/nl/adaptivity/xmlutil/serialization/XMLDecoder.kt +++ b/serialization/src/commonMain/kotlin/nl/adaptivity/xmlutil/serialization/XMLDecoder.kt @@ -1051,7 +1051,7 @@ internal open class XmlDecoderBase internal constructor( ) ) } else { - return super.decodeSerializableElement(parentDesc, elementIndex, deserializer) + return super.decodeSerializableElement(desc, index, deserializer) } }