✓
Passing This code compiles and runs correctly.
Code
// PIN: `print.ln()` with no argument emits the terminator alone —
// expr is `?Expression`, and an absent argument lowers to printing
// an empty string plus the newline (the print/print.ln decls share
// this; print() with no arg emits nothing at all).
import std/io
std/io:print("a")
std/io:print.ln()
std/io:print.ln("b")
std/io:print.ln("")
std/io:print("c")
std/io:print.ln()
Actual
a
b
c
Expected output
a
b
c
Flows
flow ~print click a branch to expand · @labels scroll to their anchor
print (expr: "a")
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "b")
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "")
flow ~print click a branch to expand · @labels scroll to their anchor
print (expr: "c")
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln
Test Configuration
MUST_RUN