aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/types.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types.cpp b/src/types.cpp
index 67f42adca..e07765714 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -997,7 +997,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;
}