aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/non_float_passed_to_intFromFloat.zig
blob: 2bb4068d74127b5f45eb29cf42165c955223823e (plain)
1
2
3
4
5
6
7
8
export fn entry() void {
    const x: i32 = @intFromFloat(@as(i32, 54));
    _ = x;
}

// error
//
// :2:34: error: expected float type, found 'i32'