mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-01 09:22:50 +00:00
Implement Python class method declarations
This commit is contained in:
parent
e4c61392d2
commit
33edcd2e1c
7 changed files with 141 additions and 4 deletions
|
@ -1455,7 +1455,6 @@ impl CodeGenerator {
|
|||
log!(info "entered {}", fn_name!());
|
||||
let class = obj.ref_t().name(); // これは必ずmethodのあるクラスになっている
|
||||
let uniq_obj_name = obj.__name__().map(Str::rc);
|
||||
log!("{class} {method_name}");
|
||||
if &method_name.inspect()[..] == "update!" {
|
||||
return self.emit_call_update(obj, args);
|
||||
} else if is_fake_method(&class, method_name.inspect()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue