summaryrefslogtreecommitdiff
path: root/shape.c
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2025-06-12 12:02:56 +0200
committerJean Boussier <[email protected]>2025-06-12 13:43:29 +0200
commit8b5ac5abf258270b32ef63a6acb4eb0d191f79d9 (patch)
tree1a189584be652b2125e8d40aff97ee316860e45e /shape.c
parent81209719321f9cded2c4bdf50203f5ef34e3db7e (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shape.c b/shape.c
index 6f187552de..352c8d97a7 100644
--- a/shape.c
+++ b/shape.c
@@ -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);
}