Generate C code for an_array[:].

This commit is contained in:
Nigel Tao committed 2017-09-23 10:51:04 +10:00
1 parent f107ec155d
commit a9f12c23a4
6 files changed
+70 -16

No files matched your search

+6 -2
View File
@@ -761,8 +761,12 @@ func (q *checker) bcheckExprOther(n *a.Expr, depth uint32) (*big.Int, *big.Int,
}
case t.KeyColon:
// TODO.
return nil, nil, fmt.Errorf("check: unrecognized token.Key (0x%X) for bcheckExprOther", n.ID0().Key())
mhs := n.MHS().Expr()
rhs := n.RHS().Expr()
if mhs == nil && rhs == nil {
return nil, nil, nil
}
return nil, nil, fmt.Errorf("TODO: bcheckExprOther for a non-trivial slice")
case t.KeyDot:
// TODO: delete this hack that only matches "in".