✓
Passing This code compiles and runs correctly.
Code
// Test: Empty identity branches should NOT generate captures
//
// BUG: When | full is NESTED inside another branch, it generates
// .full => |full| { ... } instead of .full => { ... }
//
// This test replicates the exact structure from $std/rings.
~import "$std/io"
~import "$app/test_lib"
// Nested structure like rings: | ok |> inner_call() | full |>
~app.test_lib.ops:try_op()
| ok |> app.test_lib.ops:try_op()
| ok |> std.io:print.ln("Both ok!")
| full |> std.io:print.ln("Inner full!")
| full |> std.io:print.ln("Outer full!")
Expected Output
Both ok!
Imported Files
// Module with empty identity branches - matching rings pattern
~pub event try_op {}
| ok
| full
~proc try_op {
return .ok;
}
Test Configuration
MUST_RUN