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
@@ -112,7 +112,8 @@ void check_init_variables(CheckerContext *ctx, Entity **lhs, isize lhs_count, Ar
isize rhs_count = operands.count;
for_array(i, operands) {
if (operands[i].mode == Addressing_Invalid) {
rhs_count--;
// TODO(bill): Should I ignore invalid parameters?
// rhs_count--;
}
}