aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--array.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/array.c b/array.c
index 1f8781bcf4..ce194d96cf 100644
--- a/array.c
+++ b/array.c
@@ -8948,6 +8948,11 @@ rb_ary_deconstruct(VALUE ary)
void
Init_Array(void)
{
+ if (should_be_T_ARRAY(Qnil)) {
+ should_not_be_shared_and_embedded(Qnil);
+ UNREACHABLE;
+ }
+
#undef rb_intern
#define rb_intern(str) rb_intern_const(str)