✓
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 }
~proc report-temp|zig {
std.debug.print("Temperature: {d:.1}\n", .{temp});
}
~report-temp(temp: 98.6)
Actual
Temperature: 98.6
Must contain:
Temperature: 98.6Flows
flow ~float click a branch to expand · @labels scroll to their anchor
float (Temperature)
flow ~report-temp click a branch to expand · @labels scroll to their anchor
report-temp (temp: 98.6)
Test Configuration
MUST_RUN