✓
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 {}
| done {}
// Annotations with comparison operators
~[version>=2.0] event version_check {}
| done {}
// Annotations with spaces in params
~[profile "with spaces" 1000Hz] event spaced {}
| done {}
// Nested parens (opaque string handles it)
~[custom(foo(bar: 1))] event nested {}
| done {}
// URL-like annotation
~[source("https://example.com/spec")] event url_annot {}
| done {}
// Future syntax experimentation
~[inline@500] event at_syntax {}
| done {}
~proc colon_separated { return .{ .done = .{} }; }
~proc version_check { return .{ .done = .{} }; }
~proc spaced { return .{ .done = .{} }; }
~proc nested { return .{ .done = .{} }; }
~proc url_annot { return .{ .done = .{} }; }
~proc at_syntax { return .{ .done = .{} }; }