mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-21 20:10:35 +00:00
Fix type cycle bug
This commit is contained in:
@@ -217,6 +217,7 @@ struct Type {
|
||||
};
|
||||
|
||||
|
||||
|
||||
// TODO(bill): Should I add extra information here specifying the kind of selection?
|
||||
// e.g. field, constant, array field, type field, etc.
|
||||
struct Selection {
|
||||
@@ -481,12 +482,6 @@ Type *alloc_type(gbAllocator a, TypeKind kind) {
|
||||
}
|
||||
|
||||
|
||||
Type *make_type_basic(gbAllocator a, BasicType basic) {
|
||||
Type *t = alloc_type(a, Type_Basic);
|
||||
t->Basic = basic;
|
||||
return t;
|
||||
}
|
||||
|
||||
Type *make_type_generic(gbAllocator a, Scope *scope, i64 id, String name, Type *specialized) {
|
||||
Type *t = alloc_type(a, Type_Generic);
|
||||
t->Generic.id = id;
|
||||
|
||||
Reference in New Issue
Block a user