aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/non_int_passed_to_floatFromInt.zig
blob: c60842e98003d1095f2aa61abd181d98c1fd03e8 (plain)
1
2
3
4
5
6
7
8
9
10
export fn entry() void {
    const x: f32 = @floatFromInt(1.1);
    _ = x;
}

// error
// backend=stage2
// target=native
//
// :2:34: error: expected integer type, found 'comptime_float'