v/vlib/v/tests/alias_fixed_array_test.v

13 lines
208 B
V

type Block = [8]u8
fn test_alias_fixed_array() {
a := [8]u8{init: 22}
ret := get(Block(a))
println(ret)
assert ret == 'Block([22, 22, 22, 22, 22, 22, 22, 22])'
}
fn get(b Block) string {
return '$b'
}