diff --git a/src/types.cpp b/src/types.cpp index 847aea9f3..d11c27be6 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -988,7 +988,7 @@ gb_internal Type *alloc_type_enumerated_array(Type *elem, Type *index, ExactValu gb_internal Type *alloc_type_slice(Type *elem) { Type *t = alloc_type(Type_Slice); - t->Array.elem = elem; + t->Slice.elem = elem; return t; }