summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-03-14 09:28:37 +0800
committerLi Jin <dragon-fly@qq.com>2022-03-14 09:28:37 +0800
commit985761356280bf8625a6568dd83822aae83edc8f (patch)
treefe3e41eae0da163a6ea71133e30d2b70b8c17aaa
parent4ff6d54b09a216648a00f333042fcf32ca8c4b44 (diff)
downloadyuescript-0.10.6.tar.gz
yuescript-0.10.6.tar.bz2
yuescript-0.10.6.zip
fix issue #83.v0.10.6
-rwxr-xr-xsrc/yuescript/yue_compiler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuescript/yue_compiler.cpp b/src/yuescript/yue_compiler.cpp
index 45d7820..66130fa 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.10.5"sv; 63const std::string_view version = "0.10.6"sv;
64const std::string_view extension = "yue"sv; 64const std::string_view extension = "yue"sv;
65 65
66class YueCompilerImpl { 66class YueCompilerImpl {
@@ -2012,7 +2012,7 @@ private:
2012 auto leftValue = singleValueFrom(leftExp); 2012 auto leftValue = singleValueFrom(leftExp);
2013 if (!leftValue) throw std::logic_error(_info.errorMessage("left hand expression is not assignable"sv, leftExp)); 2013 if (!leftValue) throw std::logic_error(_info.errorMessage("left hand expression is not assignable"sv, leftExp));
2014 auto chain = leftValue->item.as<ChainValue_t>(); 2014 auto chain = leftValue->item.as<ChainValue_t>();
2015 if (!chain) throw std::logic_error(_info.errorMessage("left hand expression is not assignable"sv, chain)); 2015 if (!chain) throw std::logic_error(_info.errorMessage("left hand expression is not assignable"sv, leftValue));
2016 BLOCK_START 2016 BLOCK_START
2017 { 2017 {
2018 auto dot = ast_cast<DotChainItem_t>(chain->items.back()); 2018 auto dot = ast_cast<DotChainItem_t>(chain->items.back());