aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/vlib/v/checker/tests/unsafe_fixed_array_assign.vv
blob: 38defbd6f81bf4281c46d7b632fa1b418d8a196c (plain)
1
2
3
4
5
6
7
8
9
10
struct Box {
mut:
	num int
}

mut box := Box { num: 10 }
a := [&box]!
mut b := a
b[0].num = 0
println(a)