Skip to content

Commit

Permalink
(bugfix) Export Construct enums before types, since types can depend …
Browse files Browse the repository at this point in the history
…on enums (#240)
  • Loading branch information
Mimickal authored Mar 20, 2022
1 parent 7ff2eda commit ada9574
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ada9574

Please sign in to comment.