Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
invalid_shift_amount_error.zig
pretty
plain
permalink
blame
history
•
11 lines
•
168 B
1
const x: u8 = 2;
2
fn f() u16 {
3
return x << 8;
4
}
5
export fn entry() u16 {
6
return f();
7
}
8
9
// error
10
//
11
// :3:17: error: type 'u3' cannot represent integer value '8'