Extends 1036-errors-failable-smoke with an end-to-end Composition section covering the E5.1 forms: a failable closure literal through a Closure(...) param (try-propagated, caught), a non-failable closure literal widened into a failable bare slot (∅-widening adapter), and generic ($T) value-carrying failable composition. Completes E5.4 — the per-feature examples (1039-1045) remain the focused units; this is the integrated smoke.
24 lines
318 B
Plaintext
24 lines
318 B
Plaintext
tag: BadDigit
|
|
parsed: 10
|
|
got: BadDigit
|
|
catch-expr: 100
|
|
catch-match: 1
|
|
or-default ok: 10
|
|
logged BadDigit
|
|
or-default err: -1
|
|
or-value: 55
|
|
or-chain: 16
|
|
pair-catch: 0 0
|
|
pair-ok: 8 10
|
|
check absorbed
|
|
acquire fail:
|
|
onfail B
|
|
defer A
|
|
acquire ok:
|
|
defer A
|
|
closure-run: 12
|
|
closure-run-err: -9
|
|
widen: 10
|
|
wrap: 42
|
|
errors ok
|