Check "var a [4]u8".

This commit is contained in:
Nigel Tao committed 2017-05-11 17:15:14 +10:00
1 parent c1ce1b08de
commit fa36ef76ec
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ func TypeExprString(m *t.IDMap, n *a.TypeExpr) string {
case t.IDPtr:
return "ptr " + TypeExprString(m, n.Inner())
case t.IDOpenBracket:
// TODO.
return "[" + ExprString(m, n.ArrayLength()) + "] " + TypeExprString(m, n.Inner())
default:
s = m.ByID(n.PackageOrDecorator()) + "." + m.ByID(n.Name())
}