v/vlib/v/tests/const_fixed_array_of_refere...

11 lines
191 B
V

const (
foo = u32(1)
bar = u32(2)
weapon_keys = [&foo, &bar]!
)
fn test_const_fixed_array_of_ref_value() {
assert weapon_keys[0] == &foo
assert weapon_keys[1] == &bar
}