mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tests: re-add the disambiguated for (val in [TokenValue(
+), TokenValue(
-)]) {
test
This commit is contained in:
10
vlib/v/tests/for_cond_test.v
Normal file
10
vlib/v/tests/for_cond_test.v
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
type TokenValue = rune | u64
|
||||||
|
|
||||||
|
fn test_for_cond() {
|
||||||
|
val := `+`
|
||||||
|
for (val in [TokenValue(`+`), TokenValue(`-`)]) {
|
||||||
|
println('ok')
|
||||||
|
break
|
||||||
|
}
|
||||||
|
assert true
|
||||||
|
}
|
Reference in New Issue
Block a user