alter-fixed-array-syntax #3

Merged
sashakoshka merged 6 commits from alter-fixed-array-syntax into main 2022-09-05 09:39:27 -06:00
Showing only changes of commit 031907a6e0 - Show all commits

View File

@ -73,15 +73,17 @@ func (what Type) ToString () (output string) {
output += "{"
output += what.points.ToString()
if what.kind == TypeKindArray {
output += fmt.Sprint(" ", what.length)
} else if what.kind == TypeKindVariableArray {
if what.kind == TypeKindVariableArray {
output += " .."
}
output += "}"
}
if what.kind == TypeKindArray {
output += fmt.Sprint(":", what.length)
}
if what.mutable {
output += ":mut"
}