diff options
author | Jean Boussier <[email protected]> | 2025-06-12 12:02:56 +0200 |
---|---|---|
committer | Jean Boussier <[email protected]> | 2025-06-12 13:43:29 +0200 |
commit | 8b5ac5abf258270b32ef63a6acb4eb0d191f79d9 (patch) | |
tree | 1a189584be652b2125e8d40aff97ee316860e45e /shape.c | |
parent | 81209719321f9cded2c4bdf50203f5ef34e3db7e (diff) |
Fix class instance variable inside namespaces
Now that classes fields are delegated to an object with its own
shape_id, we no longer need to mark all classes as TOO_COMPLEX.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13595
Diffstat (limited to 'shape.c')
-rw-r--r-- | shape.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -397,7 +397,7 @@ rb_obj_shape_id(VALUE obj) } if (BUILTIN_TYPE(obj) == T_CLASS || BUILTIN_TYPE(obj) == T_MODULE) { - VALUE fields_obj = RCLASS_FIELDS_OBJ(obj); + VALUE fields_obj = RCLASS_WRITABLE_FIELDS_OBJ(obj); if (fields_obj) { return RBASIC_SHAPE_ID(fields_obj); } |