This commit tightens up the restriction on types used to index slices to require exactly `uint` indices. Previously any integral type was accepted, but this leads to a few subtle problems: * 64-bit indices don't make much sense on 32-bit systems * Signed indices for slices used as negative indexing isn't implemented This was discussed at the recent work week, and also has some discussion on issue #10453. Closes #10453 |
||
|---|---|---|
| .. | ||
| auxiliary | ||
| bench | ||
| codegen | ||
| compile-fail | ||
| debug-info | ||
| pretty | ||
| run-fail | ||
| run-make | ||
| run-pass | ||
| run-pass-fulldeps | ||