1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/compiler/tests/match_test.v
Alexander Medvednikov a9463a180d new match statement
2019-07-17 02:41:08 +02:00

12 lines
154 B
Go

fn test_switch() {
a := 3
mut b := 0
match a {
2 => println('two')
3 => println('three')
b = 3
4 => println('4')
}
assert b == 3
}