| ... | @@ -606,7 +606,7 @@ test "len" { | ... | @@ -606,7 +606,7 @@ test "len" { |
| 606 | testing.expect(len(ptr) == 2); | 606 | testing.expect(len(ptr) == 2); |
| 607 | } | 607 | } |
| 608 | { | 608 | { |
| 609 | var array: [5:0]u16 = [_]u16{ 1, 2, 3, 4, 5 }; | 609 | var array: [5:0]u16 = [_:0]u16{ 1, 2, 3, 4, 5 }; |
| 610 | testing.expect(len(&array) == 5); | 610 | testing.expect(len(&array) == 5); |
| 611 | array[2] = 0; | 611 | array[2] = 0; |
| 612 | testing.expect(len(&array) == 2); | 612 | testing.expect(len(&array) == 2); |