Fix issue where compounds had not enough type information to typecheck
This commit is contained in:
12
ast.cpp
12
ast.cpp
@@ -77,18 +77,6 @@ struct Ast_Expr:Ast{
|
||||
};
|
||||
};
|
||||
|
||||
#define VALUE_FIELDS \
|
||||
Ast_Type *type; \
|
||||
union{ \
|
||||
bool bool_val; \
|
||||
F64 f64_val; \
|
||||
Intern_String intern_val; \
|
||||
BigInt big_int_val;\
|
||||
Ast_Type *type_val; \
|
||||
};
|
||||
#define INLINE_VALUE_FIELDS union{Value value; struct{VALUE_FIELDS};}
|
||||
struct Value{VALUE_FIELDS};
|
||||
|
||||
struct Ast_Atom: Ast_Expr{
|
||||
Ast_Decl *resolved_decl;
|
||||
INLINE_VALUE_FIELDS;
|
||||
|
||||
Reference in New Issue
Block a user