✓
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] tor compile-only {}
// Multiple annotations (inline with |)
~[comptime|runtime] tor dual-phase {}
// Multiple annotations (should also work - future vertical syntax)
~[fuseable] pub tor optimizable {}
// Proc with annotations
~[inline] proc compile-only|zig {
}
~proc dual-phase|zig {
}
~proc optimizable|zig {
}