fix: mutable type method access bug

This commit is contained in:
Shunsuke Shibayama 2024-04-26 11:59:55 +09:00
parent 44b4b8d82a
commit 2887a77f70
3 changed files with 15 additions and 1 deletions

View file

@ -2875,7 +2875,7 @@ impl Context {
);
/* Str! */
let mut str_mut = Self::builtin_mono_class(MUT_STR, 2);
str_mut.register_superclass(Str, &nonetype);
str_mut.register_superclass(Str, &str_);
let mut str_mut_mutable = Self::builtin_methods(Some(mono(MUTABLE)), 2);
str_mut_mutable.register_builtin_const(
IMMUT_TYPE,