056 self outside init must refuse not panic

✓ Passing This code compiles and runs correctly.

Code

input.k

Output must match:

# The refusal must be a located koru-level diagnostic...
CONTAINS error[KORU
# ...and must NOT be the raw host panic the transform raises today.
NOT_CONTAINS could not find invocation in AST

Flows

flow ~shape click a branch to expand · @labels scroll to their anchor
shape (expr: Body, source: mass: f64,)
flow ~self click a branch to expand · @labels scroll to their anchor
self (source: k.mass *= 2.0)