Gitly
English
Русский
Español
日本語
中文
Português
Pricing
Log in
Register
v4
/
vlib
/
v
/
checker
/
tests
/
if_mismatch_option_err.vv
9
lines
·
8
sloc
·
171 bytes
·
0c8ce3bcb9fd4a2e5bd5f991a5a07da976d780d7
Raw
1
enum Operation {
2
get_area
3
get_sector
4
}
5
6
fn main() {
7
operation_name := 'get_area'
8
operation := if o := Operation.from(operation_name) { o } else { ?Operation(none) }
9
}
10