aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/v/checker/tests/assign_multi_mismatch.vv
blob: d25815c454dde4b13f3e0d50dfc61647d6a8de3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
fn f() (int, int) {
	return 0, 0
}

_ := 0, 0
_ := f()
_, _ := f()
_, _ := 0, f()
_, _ := f(), 0
_, _, _ := 0, f()
_, _, _ := f(), 0
_, _ := f(), f()
_, _, _, _ := f(), f()

_, _ := 0, match 4 {
	1 { 0 }
	else { 1 }
}
_ := match 4 {
	1 { f() }
	else { f() }
}
_, _ := 0, match 4 {
	1 { f() }
	else { f() }
}

_, _ := 0, if true { 0 } else { 1 }
_ := if true { f() } else { f() }
_, _ := 0, if true { f() } else { f() }