✓
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:print.ln("Greater than 10")
| else |> std/io:print.ln("10 or less")
const small = 5;
~if(small > 10)
| then |> std/io:print.ln("Small is greater")
| else |> std/io:print.ln("Small is 10 or less")
Actual
Greater than 10
Small is 10 or less
Expected output
Greater than 10
Small is 10 or less
Test Configuration
MUST_RUN