mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-23 04:50:36 +00:00
Fix issue #146 regarding polymorphic type parameters
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user