diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuescript/yue_compiler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/yuescript/yue_compiler.cpp b/src/yuescript/yue_compiler.cpp index f2a4c7a..d20b94b 100644 --- a/src/yuescript/yue_compiler.cpp +++ b/src/yuescript/yue_compiler.cpp | |||
| @@ -10224,8 +10224,9 @@ private: | |||
| 10224 | } | 10224 | } |
| 10225 | BLOCK_END | 10225 | BLOCK_END |
| 10226 | } else if (auto expList = expListFrom(statement)) { | 10226 | } else if (auto expList = expListFrom(statement)) { |
| 10227 | auto value = singleValueFrom(expList); | 10227 | if (auto value = singleValueFrom(expList)) { |
| 10228 | clsDecl = value->get_by_path<SimpleValue_t, ClassDecl_t>(); | 10228 | clsDecl = value->get_by_path<SimpleValue_t, ClassDecl_t>(); |
| 10229 | } | ||
| 10229 | } | 10230 | } |
| 10230 | if (clsDecl) { | 10231 | if (clsDecl) { |
| 10231 | auto variable = clsDecl->name.as<Variable_t>(); | 10232 | auto variable = clsDecl->name.as<Variable_t>(); |
