mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
4982997b04
The bug was in codegen_colon3 which used genop_2(OP_OCLASS, sym) treating OCLASS as BB format, but OCLASS is B format that only loads ::Object without a symbol parameter. The fix uses the correct two-instruction pattern: OCLASS to load Object class, then GETMCNST to retrieve the constant from it. Co-authored-by: Claude <noreply@anthropic.com>