Open
Description
👋 reported the same issue for jruby, and can observe the same thing happening when using truffleruby 24.2.1.
Expected Behavior
Given the following snippet, I'd expect the const not to be defined:
Object.const_set :Bang, Module.new
p Object.const_defined?("Bang::Struct") #=>should be false
Actual Behavior
The snippet above returns true, false in cruby. The latter is correct.