aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2021-12-17 16:38:41 +0800
committerLi Jin <dragon-fly@qq.com>2021-12-17 16:38:41 +0800
commit2138d176edfe1f8ba3ecee211f15825e97f0570a (patch)
tree9769ce3fe4234a17309fd26e8527da6f26a0197e /src
parent59852b14368bd3609b1c6e3e469cd4af111e4562 (diff)
downloadyuescript-2138d176edfe1f8ba3ecee211f15825e97f0570a.tar.gz
yuescript-2138d176edfe1f8ba3ecee211f15825e97f0570a.tar.bz2
yuescript-2138d176edfe1f8ba3ecee211f15825e97f0570a.zip
fix an new issue found by the example from issue #72
Diffstat (limited to 'src')
-rwxr-xr-xsrc/yuescript/yue_compiler.cpp3
1 files changed, 2 insertions, 1 deletions
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;
60 60
61typedef std::list<std::string> str_list; 61typedef std::list<std::string> str_list;
62 62
63const std::string_view version = "0.9.3"sv; 63const std::string_view version = "0.9.4"sv;
64const std::string_view extension = "yue"sv; 64const std::string_view extension = "yue"sv;
65 65
66class YueCompilerImpl { 66class YueCompilerImpl {
@@ -5141,6 +5141,7 @@ private:
5141 auto exp = ast_cast<Exp_t>(assign->values.objects().front()); 5141 auto exp = ast_cast<Exp_t>(assign->values.objects().front());
5142 BREAK_IF(!exp); 5142 BREAK_IF(!exp);
5143 auto value = singleValueFrom(exp); 5143 auto value = singleValueFrom(exp);
5144 BREAK_IF(!value);
5144 clsDecl = value->getByPath<SimpleValue_t, ClassDecl_t>(); 5145 clsDecl = value->getByPath<SimpleValue_t, ClassDecl_t>();
5145 BLOCK_END 5146 BLOCK_END
5146 } else if (auto expList = expListFrom(statement)) { 5147 } else if (auto expList = expListFrom(statement)) {