aboutsummaryrefslogtreecommitdiff
path: root/tools/odinfmt/tests/switch.odin
blob: f17d01049d9f655c025359accba5961eaf738cbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package odinfmt_test

main :: proc() {
	foos := []string{
		"foo", "bar"}

	for i in 0..<len(foos)   {
		switch foo := foo[i]; {
		case "foo": 
		}
	}

	for i in 0..<len(foos)   {
		switch foo := foo[i]; 
		foo {
		case "foo": 
		}
	}
}