aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/vlib/v/parser/tests/postfix_err.vv
blob: a1ba5688933a3343debdc680fa956340c096ecdc (plain)
1
2
3
4
5
6
7
8
9
10
11
fn f(i int) {}

fn test_postfix() {
	mut x := 1
	_ = (x++)
	x--, x-- // OK
	f(x++)
	a := [x]
	_ = a[x--]
}