diff options
author | Li Jin <dragon-fly@qq.com> | 2022-03-14 09:28:37 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-03-14 09:28:37 +0800 |
commit | 985761356280bf8625a6568dd83822aae83edc8f (patch) | |
tree | fe3e41eae0da163a6ea71133e30d2b70b8c17aaa | |
parent | 4ff6d54b09a216648a00f333042fcf32ca8c4b44 (diff) | |
download | yuescript-0.10.6.tar.gz yuescript-0.10.6.tar.bz2 yuescript-0.10.6.zip |
fix issue #83.v0.10.6
-rwxr-xr-x | src/yuescript/yue_compiler.cpp | 4 |
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 | ||
61 | typedef std::list<std::string> str_list; | 61 | typedef std::list<std::string> str_list; |
62 | 62 | ||
63 | const std::string_view version = "0.10.5"sv; | 63 | const std::string_view version = "0.10.6"sv; |
64 | const std::string_view extension = "yue"sv; | 64 | const std::string_view extension = "yue"sv; |
65 | 65 | ||
66 | class YueCompilerImpl { | 66 | class 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()); |