You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<source>:1:45: error: out of bounds slice
comptime { const y = @as([*]void, undefined)[0..4]; }
^
@as([*]void, undefined) yields a defined instance of [*]void, since zero-sized values cannot be undefined. Since the stride is zero, a slice of this value is the same size as the value, so this is not out of bounds.
The text was updated successfully, but these errors were encountered:
SpexGuy
added
bug
Observed behavior contradicts documented or intended behavior
stage1
The process of building from source via WebAssembly and the C backend.
labels
Nov 3, 2020
@as([*]void, undefined)
yields a defined instance of[*]void
, since zero-sized values cannot be undefined. Since the stride is zero, a slice of this value is the same size as the value, so this is not out of bounds.The text was updated successfully, but these errors were encountered: