From a66ec0d18eba6b38fad25cc88c82f7532d689670 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Wed, 9 Feb 2022 10:52:49 +0800 Subject: fix a case nil coalesing used as update assignment. --- spec/inputs/nil_coalesing.yue | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spec/inputs') diff --git a/spec/inputs/nil_coalesing.yue b/spec/inputs/nil_coalesing.yue index facd64c..76915c7 100644 --- a/spec/inputs/nil_coalesing.yue +++ b/spec/inputs/nil_coalesing.yue @@ -39,5 +39,10 @@ do do a = 1 ?? 2 ?? 3 +do + a.b.c ??= 1 + a = b.x ?? c.x ?? d.x + a.c ??= 1 + nil -- cgit v1.2.3-55-g6feb