From f02f2e47085956718dfd788c23f41b2e41146110 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 28 May 2022 13:21:59 +0300 Subject: [PATCH] ci: temporary workaround for cross assignment in a closure leading to cgen error --- vlib/v/tests/assign_literal_with_closure_test.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vlib/v/tests/assign_literal_with_closure_test.v b/vlib/v/tests/assign_literal_with_closure_test.v index 1fc5f209b5..597b48226e 100644 --- a/vlib/v/tests/assign_literal_with_closure_test.v +++ b/vlib/v/tests/assign_literal_with_closure_test.v @@ -10,7 +10,8 @@ fn sma(period int) fn (f64) f64 { } sum += input - storage[i] - storage[i], i = input, (i + 1) % period + storage[i] = input + i = (i + 1) % period return sum / f64(storage.len) } }