| 1 | (* A []const T doesn't go where a []T is wanted, which could write |
| 2 | its elements (report sections 5.3 and 5.10). *) |
| 3 | module ConstSliceToSlice; |
| 4 | |
| 5 | proc fill(s: []U8); |
| 6 | begin |
| 7 | FILL(s, 0); |
| 8 | end; |
| 9 | |
| 10 | proc main*; |
| 11 | var r: []const U8; |
| 12 | begin |
| 13 | fill(r); |
| 14 | end; |
| 15 | |
| 16 | end ConstSliceToSlice. |