Fix union array bug (Issue #112)

This commit is contained in:
Ginger Bill
2017-09-29 21:35:59 +01:00
parent e6e9375b09
commit 8c7cf0dbb0
4 changed files with 32 additions and 24 deletions

View File

@@ -1037,6 +1037,13 @@ bool type_has_nil(Type *t) {
return false;
}
bool elem_type_can_be_constant(Type *t) {
if (is_type_any(t) || is_type_union(t)) {
return false;
}
return true;
}
bool is_type_comparable(Type *t) {
t = base_type(t);