Skip to content

Commit

Permalink
Fix AssertEnum
Browse files Browse the repository at this point in the history
  • Loading branch information
lemon-mint committed Dec 27, 2022
1 parent d29b299 commit e9b5c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compile/backend/golang/enums.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ func writeEnums(w io.Writer, i *ir.IR) {
for i, o := range e.Options {
fmt.Fprintf(w, "_v[%s_%s-%d] = struct{}{}\n", NameConv(e.Name), NameConv(o), i)
}
fmt.Fprint(w, "return struct{}{}\n}\n\n")
fmt.Fprint(w, "return struct{}{}\n}()\n\n")
}
}

0 comments on commit e9b5c7b

Please sign in to comment.