diff options
| author | gingerBill <ginger.bill.22@gmail.com> | 2016-08-14 15:31:11 +0100 |
|---|---|---|
| committer | gingerBill <ginger.bill.22@gmail.com> | 2016-08-14 15:31:11 +0100 |
| commit | b44bc99b889bb07dfe4f843ddeefd7483e0fba82 (patch) | |
| tree | 9ce3fe6b7267e35a8a498c98c7fc88b77771090d /src/checker/type.cpp | |
| parent | ee002364120a773753d37cf5575baa6e86d0502c (diff) | |
append :: proc(s: ^[]T, i: T) -> bool
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) { |