aboutsummaryrefslogtreecommitdiff
path: root/tools/odinfmt/tests/comp_lit.odin
blob: c8a4aff3eb94f32ecdebda46d0b54ecff8f175d2 (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() {
	sort.sort(sort.Interface{len = proc(it: sort.Interface) -> int {
		c := 2
		}, 
		less = proc(it: sort.Interface, i, j: int) -> bool {
			b := 1
		}, 
		swap = proc(it: sort.Interface, i, j: int) {
			a := 2
			c := 3
		}, 
		collection = &polygon,
	})
}