diff options
| author | Michael Dusan <michael.dusan@gmail.com> | 2021-01-18 00:36:37 -0500 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2021-01-30 11:19:25 +0200 |
| commit | f9b85c6e50e22153aff4c87e2ba943d68f24ee8c (patch) | |
| tree | 0a5825a3c0f930f80f08f596c6f1750d57366252 /lib/std/json.zig | |
| parent | 3d4eeafb47f97e5057d36fe2c3ed061cf0c70a63 (diff) | |
| download | zig-f9b85c6e50e22153aff4c87e2ba943d68f24ee8c.tar.gz zig-f9b85c6e50e22153aff4c87e2ba943d68f24ee8c.zip | |
stage1: add error for slice.len incr beyond bounds
comptime direct slice.len increment dodges bounds checking but
we can emit an error for it, at least in the simple case.
- promote original assert to compile-error
- add test case
closes #7810
Diffstat (limited to 'lib/std/json.zig')
0 files changed, 0 insertions, 0 deletions
