```ruby o = Object.new o.singleton_class # needed for bug o.freeze def o.foo 42 end # => succeeds, should raise `FrozenError` p o.foo # => 42 ``` Note that calling `singleton_class` is necessary to create the bug, I presume because it forces the creation of the `singleton_class` before freezing. ```sh $ ruby -v truffleruby 20.3.0-dev-80339253, like ruby 2.6.6, GraalVM CE Native [x86_64-darwin] ```