✓
Passing This code compiles and runs correctly.
Code
// Test 605: Annotation Edge Cases
// Tests various annotation formats to verify opaque string storage
const std = @import("std");
// Annotations with special characters (opaque!)
~[gpu:metal:half] event colon-separated {}
// Annotations with comparison operators
~[version>=2.0] event version-check {}
// Annotations with spaces in params
~[profile "with spaces" 1000Hz] event spaced {}
// Nested parens (opaque string handles it)
~[custom(foo(bar: 1))] event nested {}
// URL-like annotation
~[source("https://example.com/spec")] event url-annot {}
// Future syntax experimentation
~[inline@500] event at-syntax {}
~proc colon-separated|zig { return .{ .done = .{} }; }
~proc version-check|zig { return .{ .done = .{} }; }
~proc spaced|zig { return .{ .done = .{} }; }
~proc nested|zig { return .{ .done = .{} }; }
~proc url-annot|zig { return .{ .done = .{} }; }
~proc at-syntax|zig { return .{ .done = .{} }; }