No segfaulty

This commit is contained in:
Sasha Koshka 2022-10-16 02:07:25 -04:00
parent e885af997d
commit 098acafab1
2 changed files with 4 additions and 1 deletions

View File

@ -35,7 +35,9 @@ func (section EnumSection) ToString (indent int) (output string) {
output += section.permission.ToString() + " " output += section.permission.ToString() + " "
output += section.where.ToString() output += section.where.ToString()
output += "\n" output += "\n"
output += section.argument.ToString(indent + 1) if section.argument != nil {
output += section.argument.ToString(indent + 1)
}
output += section.what.ToString(indent + 1) output += section.what.ToString(indent + 1)
for _, member := range section.members { for _, member := range section.members {
output += member.ToString(indent + 1) output += member.ToString(indent + 1)

View File

@ -21,3 +21,4 @@ enum ro cNamedColor:bColor
enum ro dFromFarAway:typeSection.dInheritFromOther enum ro dFromFarAway:typeSection.dInheritFromOther
- bird - bird
- bread 4 - bread 4