diff --git a/shared/src/main/scala/io/kaitai/struct/ConstructClassCompiler.scala b/shared/src/main/scala/io/kaitai/struct/ConstructClassCompiler.scala index 1030129b4..9bcd0e1cd 100644 --- a/shared/src/main/scala/io/kaitai/struct/ConstructClassCompiler.scala +++ b/shared/src/main/scala/io/kaitai/struct/ConstructClassCompiler.scala @@ -33,10 +33,10 @@ class ConstructClassCompiler(classSpecs: ClassSpecs, topClass: ClassSpec) extend } def compileClass(cs: ClassSpec): Unit = { - cs.types.foreach { case (_, typeSpec) => compileClass(typeSpec) } - cs.enums.foreach { case (_, enumSpec) => compileEnum(enumSpec) } + cs.types.foreach { case (_, typeSpec) => compileClass(typeSpec) } + out.puts(s"${type2class(cs)} = Struct(") out.inc