✓
Passing This code compiles and runs correctly.
Code
// Test: Stdlib if keyword
// Verifies that ~if is available as a keyword when importing any $std module
~import "$std/io"
const std = @import("std");
const value = 42;
~if(value > 10)
| then |> std.io:println(text: "Greater than 10")
| else |> std.io:println(text: "10 or less")
const small = 5;
~if(small > 10)
| then |> std.io:println(text: "Small is greater")
| else |> std.io:println(text: "Small is 10 or less")
Expected Output
Greater than 10
Small is 10 or less
Test Configuration
MUST_RUN