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 34cc4fa commit dec780cCopy full SHA for dec780c
formats/hocon/src/main/kotlin/kotlinx/serialization/hocon/Hocon.kt
@@ -277,6 +277,7 @@ public sealed class Hocon(
277
278
override fun beginStructure(descriptor: SerialDescriptor): CompositeDecoder =
279
when {
280
+ descriptor.kind is PolymorphicKind -> PolymorphConfigReader((values[currentTag / 2] as ConfigObject).toConfig())
281
descriptor.kind.listLike -> ListConfigReader(values[currentTag / 2] as ConfigList)
282
descriptor.kind.objLike -> ConfigReader((values[currentTag / 2] as ConfigObject).toConfig())
283
descriptor.kind == StructureKind.MAP -> MapConfigReader(values[currentTag / 2] as ConfigObject)
0 commit comments