045 metatype when guards

✓ Passing This code compiles and runs correctly.

Code

// Test 310_045: When guards on metatype fields (simplified)
// Verify that 'when' clauses work on metatype observers
// This is a placeholder - when guard evaluation with metatypes is TBD

~import "$std/taps"

~event hello { }

~event logger { msg: []const u8 }

~[pure]proc hello {
}

~[pure]proc logger {
}

// For now, just verify multiple Profile observations work
// When guards on metatypes are a future feature
~tap(hello -> *)
| Profile p |> logger(msg: p.source)

~hello()
input.kz

Test Configuration

MUST_RUN