v/vlib/v/tests/match_expr_with_one_branch_...

13 lines
114 B
V

enum Color {
red
}
fn test_match_one_branch() {
col := Color.red
match col {
.red {
assert true
}
}
}