Added TypeKindVariableArray

This commit is contained in:
2022-09-04 22:27:06 -04:00
parent 57b98636d0
commit 7af575e865
4 changed files with 11 additions and 15 deletions

View File

@@ -74,12 +74,9 @@ func (what Type) ToString () (output string) {
output += what.points.ToString()
if what.kind == TypeKindArray {
output += " "
if what.length == 0 {
output += ".."
} else {
output += fmt.Sprint(what.length)
}
output += fmt.Sprint(" ", what.length)
} else if what.kind == TypeKindVariableArray {
output += " .."
}
output += "}"