diff options
Diffstat (limited to 'src/checker/type.cpp')
| -rw-r--r-- | src/checker/type.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/checker/type.cpp b/src/checker/type.cpp index 12a96e1a5..4504cd06f 100644 --- a/src/checker/type.cpp +++ b/src/checker/type.cpp @@ -438,6 +438,11 @@ b32 are_types_identical(Type *x, Type *y) { return (x->vector.count == y->vector.count) && are_types_identical(x->vector.elem, y->vector.elem); break; + case Type_Slice: + if (y->kind == Type_Slice) + return are_types_identical(x->slice.elem, y->slice.elem); + break; + case Type_Structure: if (y->kind == Type_Structure) { if (x->structure.field_count == y->structure.field_count) { |