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:
parent
809b1ca3b4
commit
3d5617c4fa
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
|
||||
}
|
Loading…
Reference in New Issue
Block a user