diff --git a/vlib/compiler/tests/defer_test.v b/vlib/compiler/tests/defer_test.v index b64292a86b..cc6063d808 100644 --- a/vlib/compiler/tests/defer_test.v +++ b/vlib/compiler/tests/defer_test.v @@ -21,7 +21,7 @@ fn set_num(i int, n mut Num) { if i < 5 { return } else { - n.val+=1 + n.val++ } } diff --git a/vlib/compiler/tests/mut_test.v b/vlib/compiler/tests/mut_test.v index 8b039ffc7c..32e53b5f9d 100644 --- a/vlib/compiler/tests/mut_test.v +++ b/vlib/compiler/tests/mut_test.v @@ -41,8 +41,8 @@ fn test_mut_2() { b.a[zero].v << 5 b.a[0].v[zero] = 3 - b.a[0].v[b.a[zero].v[zero]]++ - b.a[0].v[b.a[0].v[zero]]++ + b.a[0].v[b.a[zero].v[zero]]+= 2 -1 // TODO + b.a[0].v[b.a[0].v[zero]]+= 2 - 1 // TODO assert b.a[0].v.len == 5 assert b.a[0].v[0] == 3