summaryrefslogtreecommitdiffhomepage
path: root/mruby-source.gemspec
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-09-19 15:48:04 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2019-09-20 13:07:58 +0900
commit15701a32f5a58471ce02d25cb5fbada81cd9da2c (patch)
treef05b1b8448e4421d494ab0da62d092e5aca15284 /mruby-source.gemspec
parent683baec4f0249d1677863ced20a7921734e6faed (diff)
downloadmruby-15701a32f5a58471ce02d25cb5fbada81cd9da2c.tar.gz
mruby-15701a32f5a58471ce02d25cb5fbada81cd9da2c.zip
Fix compatibility issue of class variables.
Singleton class definition do not introduce its own class variable scope in CRuby/JRuby. So should mruby. ``` module Mod1 class << Object.new C = 1 @@cv = 1 p Module.nesting, # => [#<Class:#<Object:0x55cb16e60a50>>, Mod1] constants, # => [:C] class_variables, # => [] Mod1.class_variables # => [:@@cv] end end ```
Diffstat (limited to 'mruby-source.gemspec')
0 files changed, 0 insertions, 0 deletions