v/vlib/v/checker/tests/match_cond_with_parenthesis...

23 lines
168 B
V

module main
enum Enum {
a
b
c
}
fn foo() ?Enum {
return .a
}
fn bar() bool {
return match (foo()) {
.a { true }
.b, .c { false }
}
}
fn main() {
bar()
}