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

fix cannot get/set const variable form singleton class
This commit is contained in:
Yukihiro "Matz" Matsumoto
2012-10-29 23:29:29 -07:00
+1
View File
@@ -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");