summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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());