diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-07-04 22:42:25 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-07-04 22:42:25 +0100 |
| commit | 188bc28f6a06a29a117b36c9e8c45f0fe08465c7 (patch) | |
| tree | 79384247828673ddc6b137769b5b6ecca0190f20 /src/types.cpp | |
| parent | 689a0c0b4955e5325c5409855632a3d4a154b41e (diff) | |
Allow for overloading of polymorphic procedures
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types.cpp b/src/types.cpp index 8d7466a32..98aa1e73e 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -2445,7 +2445,7 @@ gbString write_type_to_string(gbString str, Type *type) { if (var->flags&EntityFlag_Ellipsis) { Type *slice = base_type(var->type); str = gb_string_appendc(str, ".."); - GB_ASSERT(is_type_slice(var->type)); + GB_ASSERT(var->type->kind == Type_Slice); str = write_type_to_string(str, slice->Slice.elem); } else { str = write_type_to_string(str, var->type); |