Skip to content

Commit

Permalink
class property - typo (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
MTadder authored Jan 27, 2025
1 parent 2aada4b commit 891992d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yuescript/yue_compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9053,7 +9053,7 @@ class YueCompilerImpl {
if (selfItem) {
type = MemType::Property;
auto name = ast_cast<SelfName_t>(selfItem->name);
if (!name) throw CompileError("invalid class poperty name"sv, selfItem->name);
if (!name) throw CompileError("invalid class property name"sv, selfItem->name);
if (name->name.is<UnicodeName_t>()) {
newSuperCall = classVar + ".__parent[\""s + _parser.toString(name->name) + "\"]"s;
} else {
Expand Down

0 comments on commit 891992d

Please sign in to comment.