diff options
-rw-r--r-- | src/yuescript/yue_compiler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/yuescript/yue_compiler.cpp b/src/yuescript/yue_compiler.cpp index 2283d85..d43f79b 100644 --- a/src/yuescript/yue_compiler.cpp +++ b/src/yuescript/yue_compiler.cpp | |||
@@ -75,7 +75,7 @@ static std::unordered_set<std::string> Metamethods = { | |||
75 | "close"s // Lua 5.4 | 75 | "close"s // Lua 5.4 |
76 | }; | 76 | }; |
77 | 77 | ||
78 | const std::string_view version = "0.21.4"sv; | 78 | const std::string_view version = "0.21.5"sv; |
79 | const std::string_view extension = "yue"sv; | 79 | const std::string_view extension = "yue"sv; |
80 | 80 | ||
81 | class CompileError : public std::logic_error { | 81 | class CompileError : public std::logic_error { |
@@ -3959,6 +3959,7 @@ private: | |||
3959 | expListAssign && expListAssign->action && expListAssign->action.is<Assign_t>()) { | 3959 | expListAssign && expListAssign->action && expListAssign->action.is<Assign_t>()) { |
3960 | BLOCK_START | 3960 | BLOCK_START |
3961 | auto unary = singleUnaryExpFrom(expListAssign->expList->exprs.back()); | 3961 | auto unary = singleUnaryExpFrom(expListAssign->expList->exprs.back()); |
3962 | BREAK_IF(!unary); | ||
3962 | BREAK_IF(!unary->ops.empty()); | 3963 | BREAK_IF(!unary->ops.empty()); |
3963 | auto value = static_cast<Value_t*>(unary->expos.front()); | 3964 | auto value = static_cast<Value_t*>(unary->expos.front()); |
3964 | auto simpleValue = value->item.as<SimpleValue_t>(); | 3965 | auto simpleValue = value->item.as<SimpleValue_t>(); |