From 366ff17bffbfc2bde72915f3df64b48967a0d9e0 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 19 May 2022 08:31:03 +0300 Subject: [PATCH] tests: re-add the disambiguated `for (val in [TokenValue(`+`), TokenValue(`-`)]) {` test --- vlib/v/tests/for_cond_test.v | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 vlib/v/tests/for_cond_test.v diff --git a/vlib/v/tests/for_cond_test.v b/vlib/v/tests/for_cond_test.v new file mode 100644 index 0000000000..f8ed35781b --- /dev/null +++ b/vlib/v/tests/for_cond_test.v @@ -0,0 +1,10 @@ +type TokenValue = rune | u64 + +fn test_for_cond() { + val := `+` + for (val in [TokenValue(`+`), TokenValue(`-`)]) { + println('ok') + break + } + assert true +}