This commit is contained in:
gingerBill
2017-11-30 19:53:40 +00:00
parent 04cce1826b
commit e00d88d82e
3 changed files with 9 additions and 3 deletions
+6 -2
View File
@@ -178,8 +178,12 @@ bool check_is_terminating(AstNode *node) {
}
Type *check_assignment_variable(Checker *c, Operand *lhs, Operand *rhs) {
if (rhs->mode == Addressing_Invalid ||
(rhs->type == t_invalid && rhs->mode != Addressing_Overload)) {
if (rhs->mode == Addressing_Invalid) {
return nullptr;
}
if (rhs->type == t_invalid &&
rhs->mode != Addressing_Overload &&
rhs->mode != Addressing_Builtin) {
return nullptr;
}