blob: 180bb9d8fec6a8c559942e42cf9729e07850d0f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
export fn a() void {
comptime 1;
}
export fn b() void {
comptime bar();
}
fn bar() u8 {
return 2;
}
// error
//
// :2:5: error: value of type 'comptime_int' ignored
// :2:5: note: all non-void values must be used
// :2:5: note: to discard the value, assign it to '_'
// :5:5: error: value of type 'u8' ignored
// :5:5: note: all non-void values must be used
// :5:5: note: to discard the value, assign it to '_'
|