Break the monolithic examples/50-smoke.sx into 30 focused per-section examples,
filed into their category blocks (basic/types/comptime/memory/protocols/ffi),
each carrying only the top-level decls its section references (the protocols
section keeps the full preamble — its deps flow through UFCS method calls that
name-based extraction can't see). Outputs verified identical to the original
section blocks.
Add examples/1036-errors-failable-smoke.sx — an end-to-end error-handling example
(the E5.4 work): named + inferred error sets consumed via destructure, try (in
helpers), catch (bare-expr / match-body / diverging / no-binding), or
value-terminator, onfail+defer interleave, and error.X value + {} tag
interpolation.
Remove examples/50-smoke.sx. Suite: 324 passed, 0 failed.
24 lines
270 B
Plaintext
24 lines
270 B
Plaintext
=== 6. Scoping ===
|
|
inner: 200
|
|
outer: 100
|
|
shadow-type: 42
|
|
shadow-type: 3.140000
|
|
nest3: 3
|
|
nest2: 2
|
|
nest1: 1
|
|
scope-isolate: 100
|
|
scope-reuse: 1
|
|
scope-reuse: 2
|
|
scope-reuse: 1
|
|
defer-a
|
|
defer-b
|
|
defer-c
|
|
d4
|
|
d3
|
|
d2
|
|
d1
|
|
inner-defer
|
|
outer-defer
|
|
defer-in-if: body
|
|
defer-in-if: deferred
|