mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 00:38:14 +01:00
Rename $(etc) to [etc]
This commit is contained in:
1 parent
4e7ef5fb88
commit
c1af1e2c82
14 files changed
+44
-42
No files matched your search
+1
-1
@@ -306,7 +306,7 @@ func (c *Checker) checkConst(node *a.Node) error {
|
||||
func (c *Checker) checkConstElement(n *a.Expr, nb a.Bounds, nLists int) error {
|
||||
if nLists > 0 {
|
||||
nLists--
|
||||
if n.Operator() != t.IDDollar {
|
||||
if n.Operator() != t.IDComma {
|
||||
return fmt.Errorf("invalid const value %q", n.Str(c.tm))
|
||||
}
|
||||
for _, o := range n.Args() {
|
||||
|
||||
Reference in new issue
Block a user