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
./test.zig:12:25: error: expected type '[]const i32', found '*i32'
return @as(*[1]i32, x); // COMPILE ERROR HERE
^
using zig-linux-x86_64-0.6.0+a7a8c433d.
The text was updated successfully, but these errors were encountered:
thejoshwolfe
added
bug
Observed behavior contradicts documented or intended behavior
stage1
The process of building from source via WebAssembly and the C backend.
labels
Apr 25, 2020
thejoshwolfe
changed the title
Type casting to *[1]T and then []const T gives bogus compile error in some contexts
Type casting *T to *[1]T and then []const T gives bogus compile error in some contexts
Apr 29, 2020
I added some whitespace to make the problem more obvious:
There are other manifestations of this problem, such as this:
using
zig-linux-x86_64-0.6.0+a7a8c433d
.The text was updated successfully, but these errors were encountered: