blob: 49852b5b7d0333f7970dbaba11e1211851737ce5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
const x : u8 = 2;
fn f() u16 {
return x << 8;
}
export fn entry() u16 { return f(); }
// error
// backend=stage2
// target=native
//
// :3:17: error: type 'u3' cannot represent integer value '8'
|