| 1 | pub type Labels = [][]int |
| 2 | |
| 3 | pub fn new_labels(width int, height int) Labels { |
| 4 | mut labels := Labels{len: height, init: []int{len: width}} |
| 5 | return labels |
| 6 | } |
| 7 | |
| 8 | fn test_alias_array_no_cast_init() { |
| 9 | mut labels := new_labels(2, 2) |
| 10 | println(labels) |
| 11 | assert labels == [[0, 0], [0, 0]] |
| 12 | } |
| 13 | |