102 float type

✓ Passing This code compiles and runs correctly.

Code

// TEST: ~float creates a nominal floating-point type
//
// ~float(Temperature) creates a distinct type that wraps f64
// Koru tracks it as a separate type for type checking purposes.
//
// Expected: Compiles and runs, Temperature is usable as a float

~import "$std/types"

const std = @import("std");

~float(Temperature)

~event report_temp { temp: Temperature }
| reported {}

~proc report_temp {
    std.debug.print("Temperature: {d:.1}\n", .{temp});
    return .{ .reported = .{} };
}

~report_temp(temp: 98.6)
| reported |> _
input.kz

Actual

Temperature: 98.6

Test Configuration

MUST_RUN

Expected Behavior:

CONTAINS Temperature: 98.6