}
List of things to change:
-[ ] Currently, there is no way to use the initialized members of a structure without using a struct literal.
+[X] Currently, there is no way to use the initialized members of a structure without using a struct literal.
There should be a initialize intrinsic procedure that takes a pointer to anything and initializes it.
For example:
AstUnaryOp* unaryop = *punop;
CHECK(expression, &unaryop->expr);
- resolve_expression_type(unaryop->expr);
+
+ if (unaryop->operation != Unary_Op_Negate) {
+ resolve_expression_type(unaryop->expr);
+ }
if (unaryop->operation == Unary_Op_Cast) {
char* err;
onyx_report_error(unaryop->token->pos, "Cast Error: %s", err);
return Check_Error;
}
-
} else {
unaryop->type = unaryop->expr->type;
}