master
1fn g() u64 {
2 return 0;
3}
4
5export fn constEntry() u32 {
6 const x: u32 = g();
7 return x;
8}
9
10export fn varEntry() u32 {
11 var x: u32 = g();
12 return (&x).*;
13}
14
15// error
16//
17// :6:21: error: expected type 'u32', found 'u64'
18// :6:21: note: unsigned 32-bit int cannot represent all possible unsigned 64-bit values
19// :11:19: error: expected type 'u32', found 'u64'
20// :11:19: note: unsigned 32-bit int cannot represent all possible unsigned 64-bit values