Fix issue #146 regarding polymorphic type parameters

This commit is contained in:
gingerBill committed 2017-11-18 20:56:53 +00:00
1 parent b0e3a4e276
commit 0c06a8d154
2 files changed
+9 -1

No files matched your search

+6
View File
@@ -836,6 +836,12 @@ Type *base_array_type(Type *t) {
return t;
}
bool is_type_generic(Type *t) {
t = base_type(t);
return t->kind == Type_Generic;
}
Type *core_array_or_vector_type(Type *t) {
for (;;) {
Type *prev = t;