✓
Passing This code compiles and runs correctly.
Code
// Test: Annotations appear in AST JSON output
// Verifies that ~[annotation] syntax is parsed and stored in AST
const std = @import("std");
// Single annotation
~[comptime] event compile-only {}
// Multiple annotations (inline with |)
~[comptime|runtime] event dual-phase {}
// Multiple annotations (should also work - future vertical syntax)
~[fuseable] pub event optimizable {}
// Proc with annotations
~[inline] proc compile-only|zig {
}
~proc dual-phase|zig {
}
~proc optimizable|zig {
}