diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-10-29 23:29:29 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-10-29 23:29:29 -0700 |
| commit | 4c700eddb775b14d7ab4d16080200db7a237d71a (patch) | |
| tree | a5e8dea824624630b43e82a5ccb01b8cc0f0e0f5 /src | |
| parent | 0e722add6f206042c06ee603ca2499c8a17ef58f (diff) | |
| parent | ec343a64217a4825a97d4ef469699445f86a30e7 (diff) | |
| download | mruby-4c700eddb775b14d7ab4d16080200db7a237d71a.tar.gz mruby-4c700eddb775b14d7ab4d16080200db7a237d71a.zip | |
Merge pull request #517 from skandhas/pr-fix-cannot-get-const-form-singleton-class
fix cannot get/set const variable form singleton class
Diffstat (limited to 'src')
| -rw-r--r-- | src/variable.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/variable.c b/src/variable.c index 7f9274ee4..af75f5169 100644 --- a/src/variable.c +++ b/src/variable.c @@ -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"); |
