Add suggestions to errors on casts and assignments.

This commit is contained in:
gingerBill
2019-09-17 19:47:04 +01:00
parent da3467c25f
commit 68582c5ad1
3 changed files with 85 additions and 14 deletions
+2 -1
View File
@@ -1366,7 +1366,8 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) {
isize rhs_count = rhs_operands.count;
for_array(i, rhs_operands) {
if (rhs_operands[i].mode == Addressing_Invalid) {
rhs_count--;
// TODO(bill): Should I ignore invalid parameters?
// rhs_count--;
}
}