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

// error
//
// :2:34: error: expected integer type, found 'comptime_float'