aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/doubled_grouped_expr_as_stmt.zig
blob: b485c0eb3535ce7fd4849d19faa25561151ed6a9 (plain)
1
2
3
4
5
6
7
8
9
pub export fn entry() void {
    ((1 + 1)); // makes sure that the doubled grouped_expression does not cause an endless loop in AstGen.
}

// error
//
// :2:9: error: value of type 'comptime_int' ignored
// :2:9: note: all non-void values must be used
// :2:9: note: to discard the value, assign it to '_'