Bug #15891
Updated by nobu (Nobuyoshi Nakada) over 5 years ago
This code used to work in Ruby 2.6 and before: `C = Class.new.freeze`. Now it raises a FrozenError for class and module instances, while other frozen things seem to still work. I am not sure if this is a bug or an intentional change. A possible workaround is ```ruby ``` C = Class.new C.freeze ``` which works fine.