From 2138d176edfe1f8ba3ecee211f15825e97f0570a Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 17 Dec 2021 16:38:41 +0800 Subject: fix an new issue found by the example from issue #72 --- src/yuescript/yue_compiler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/yuescript/yue_compiler.cpp b/src/yuescript/yue_compiler.cpp index e93324e..15a785a 100755 --- a/src/yuescript/yue_compiler.cpp +++ b/src/yuescript/yue_compiler.cpp @@ -60,7 +60,7 @@ using namespace parserlib; typedef std::list str_list; -const std::string_view version = "0.9.3"sv; +const std::string_view version = "0.9.4"sv; const std::string_view extension = "yue"sv; class YueCompilerImpl { @@ -5141,6 +5141,7 @@ private: auto exp = ast_cast(assign->values.objects().front()); BREAK_IF(!exp); auto value = singleValueFrom(exp); + BREAK_IF(!value); clsDecl = value->getByPath(); BLOCK_END } else if (auto expList = expListFrom(statement)) { -- cgit v1.2.3-55-g6feb