fix: handle optional primitive types in @TypeOf annotations

- Treat []const u8 as string primitive, not array (fixes ?[]const u8)
- Optional primitives generate ?T = null (e.g., ?[]const u8 = null)
- Added test for optional string type annotation
This commit is contained in:
2026-02-10 12:35:09 +05:30
parent 1bf7efecb2
commit 2b7286db4e
2 changed files with 55 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
.{
.name = .pugz,
.version = "0.3.14",
.version = "0.3.15",
.fingerprint = 0x822db0790e17621d, // Changing this has security and trust implications.
.minimum_zig_version = "0.15.2",
.dependencies = .{},