Gitly
English
Русский
Español
日本語
中文
Português
Pricing
Log in
Register
vxx2
/
vlib
/
v
/
checker
/
tests
/
match_cond_with_parenthesis_err.vv
22
lines
·
18
sloc
·
168 bytes
·
791972ebc9912881e706a55f1491f0684b0218ca
Raw
1
module main
2
3
enum Enum {
4
a
5
b
6
c
7
}
8
9
fn foo() ?Enum {
10
return .a
11
}
12
13
fn bar() bool {
14
return match (foo()) {
15
.a { true }
16
.b, .c { false }
17
}
18
}
19
20
fn main() {
21
bar()
22
}
23