mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
fix cannot get/set const variable form singleton class
This commit is contained in:
@@ -674,6 +674,7 @@ mod_const_check(mrb_state *mrb, mrb_value mod)
|
||||
switch (mrb_type(mod)) {
|
||||
case MRB_TT_CLASS:
|
||||
case MRB_TT_MODULE:
|
||||
case MRB_TT_SCLASS:
|
||||
break;
|
||||
default:
|
||||
mrb_raise(mrb, E_TYPE_ERROR, "constant look-up for non class/module");
|
||||
|
||||
Reference in New Issue
Block a user