From c6a6eb9a3cef190891924b2fb514ae1534694854 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) } }