Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
shift_by_negative_comptime_integer.zig
pretty
plain
permalink
blame
history
•
8 lines
•
107 B
1
comptime {
2
const a = 1 >> -1;
3
_ = a;
4
}
5
6
// error
7
//
8
// :2:20: error: shift by negative amount '-1'