From 2b42458f64094140ad25a38b7647c02363b63a1a Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 27 Mar 2020 18:41:45 +0800 Subject: fix issue #9. --- src/MoonP/moon_compiler.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/MoonP/moon_compiler.cpp b/src/MoonP/moon_compiler.cpp index d036645..db2e278 100644 --- a/src/MoonP/moon_compiler.cpp +++ b/src/MoonP/moon_compiler.cpp @@ -1010,6 +1010,7 @@ private: } auto exp = ast_cast(value); BREAK_IF(!exp); + BREAK_IF(!exp->opValues.empty()); if (auto chainValue = exp->value->item.as()) { auto type = specialChainValue(chainValue); auto expList = assignment->expList.get(); -- cgit v1.2.3-55-g6feb