Skip to content

Commit 87a5d6c

Browse files
committed
fix: Add "fix" to MapConfigReader as well
1 parent ff1621c commit 87a5d6c

File tree

1 file changed

+1
-0
lines changed
  • formats/hocon/src/main/kotlin/kotlinx/serialization/hocon

1 file changed

+1
-0
lines changed

formats/hocon/src/main/kotlin/kotlinx/serialization/hocon/Hocon.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ public sealed class Hocon(
283283

284284
override fun beginStructure(descriptor: SerialDescriptor): CompositeDecoder =
285285
when {
286+
descriptor.kind is PolymorphicKind -> PolymorphConfigReader((values[currentTag / 2] as ConfigObject).toConfig())
286287
descriptor.kind.listLike -> ListConfigReader(values[currentTag / 2] as ConfigList)
287288
descriptor.kind.objLike -> ConfigReader((values[currentTag / 2] as ConfigObject).toConfig())
288289
descriptor.kind == StructureKind.MAP -> MapConfigReader(values[currentTag / 2] as ConfigObject)

0 commit comments

Comments
 (0)