mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
13 lines
114 B
V
13 lines
114 B
V
enum Color {
|
|
red
|
|
}
|
|
|
|
fn test_match_one_branch() {
|
|
col := Color.red
|
|
match col {
|
|
.red {
|
|
assert true
|
|
}
|
|
}
|
|
}
|