aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/yuescript/yue_compiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuescript/yue_compiler.cpp b/src/yuescript/yue_compiler.cpp
index 3e9c048..3c2f809 100755
--- a/src/yuescript/yue_compiler.cpp
+++ b/src/yuescript/yue_compiler.cpp
@@ -5418,7 +5418,7 @@ private:
5418 auto val = getUnusedName("_val_"sv); 5418 auto val = getUnusedName("_val_"sv);
5419 auto mixins = _parser.toString(classDecl->mixes); 5419 auto mixins = _parser.toString(classDecl->mixes);
5420 _buf << "for "sv << mixin << " in *{"sv << mixins << "}\n"sv; 5420 _buf << "for "sv << mixin << " in *{"sv << mixins << "}\n"sv;
5421 _buf << "\tfor "sv << key << ',' << val << " in pairs "sv << mixin << ".__base\n"sv; 5421 _buf << "\tfor "sv << key << ',' << val << " in pairs "sv << mixin << ".__class and "sv << mixin << ".__base or "sv << mixin << '\n';
5422 _buf << "\t\t"sv << baseVar << '[' << key << "]="sv << val << " if "sv << baseVar << '[' << key << "]==nil"sv; 5422 _buf << "\t\t"sv << baseVar << '[' << key << "]="sv << val << " if "sv << baseVar << '[' << key << "]==nil"sv;
5423 transformBlock(toAst<Block_t>(clearBuf(), x), temp, ExpUsage::Common); 5423 transformBlock(toAst<Block_t>(clearBuf(), x), temp, ExpUsage::Common);
5424 } 5424 }