Gitly
English
Русский
Español
日本語
中文
Português
Pricing
Log in
Register
vxx2
/
vlib
/
v
/
checker
/
tests
/
non_const_match_range_err.vv
20
lines
·
17
sloc
·
150 bytes
·
a9b41d298095cf7814e9597dfb0f6b9abdd1686b
Raw
1
const end = 10
2
3
start := 1
4
5
match 5 {
6
start...end {
7
println(start)
8
}
9
else {}
10
}
11
12
a := match 5 {
13
start...end {
14
0
15
}
16
else {
17
1
18
}
19
}
20
println(a)
21