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 ff1621c commit 87a5d6cCopy full SHA for 87a5d6c
formats/hocon/src/main/kotlin/kotlinx/serialization/hocon/Hocon.kt
@@ -283,6 +283,7 @@ public sealed class Hocon(
283
284
override fun beginStructure(descriptor: SerialDescriptor): CompositeDecoder =
285
when {
286
+ descriptor.kind is PolymorphicKind -> PolymorphConfigReader((values[currentTag / 2] as ConfigObject).toConfig())
287
descriptor.kind.listLike -> ListConfigReader(values[currentTag / 2] as ConfigList)
288
descriptor.kind.objLike -> ConfigReader((values[currentTag / 2] as ConfigObject).toConfig())
289
descriptor.kind == StructureKind.MAP -> MapConfigReader(values[currentTag / 2] as ConfigObject)
0 commit comments