Files
AILang/examples/ordering_match.prose.txt
T

12 lines
227 B
Plaintext

// module ordering_match
/// Iter 23.1 fixture: pattern-match on prelude Ordering ctor without explicit
/// prelude import.
fn main() -> Unit with IO {
do io/print_int(match LT {
LT => 1,
EQ => 2,
GT => 3
})
}