Commit 4c700edd authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #517 from skandhas/pr-fix-cannot-get-const-form-singleton-class

fix cannot get/set const variable form singleton class
parents 0e722add ec343a64
......@@ -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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment