Prepare array and slice tokens

This commit is contained in:
Nigel Tao committed 2018-04-05 21:51:38 +10:00
1 parent 97aab37462
commit 2b91e7861c
12 files changed
+81 -68

No files matched your search

+1 -1
View File
@@ -332,7 +332,7 @@ func (c *Checker) checkConst(node *a.Node) error {
nLists := 0
typ := n.XType()
for typ.Decorator().Key() == t.KeyOpenBracket {
for typ.IsArrayType() {
if nLists == a.MaxTypeExprDepth {
return fmt.Errorf("check: type expression recursion depth too large")
}