From 07a64933f8d956a8bba401db2200e6f7d8244dc9 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Wed, 9 Feb 2022 10:14:25 +0800 Subject: fix the way update assignment is implemented. --- spec/inputs/syntax.yue | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spec/inputs') diff --git a/spec/inputs/syntax.yue b/spec/inputs/syntax.yue index aed4144..cb947e1 100644 --- a/spec/inputs/syntax.yue +++ b/spec/inputs/syntax.yue @@ -183,6 +183,11 @@ a["hello"] += 10 a["hello#{tostring ff}"] += 10 a[four].x += 10 +a.b += 1 +a.b[1].c[2+3] += 1 +with tb + .a.c += 1 + x = 0 _ = (if ntype(v) == "fndef" then x += 1) for v in *values -- cgit v1.2.3-55-g6feb