Commit 1792842808

Vallahor <vallahor91@gmail.com>
2022-05-26 21:57:20
fix: typeOf "match failed" with a call after @TypeOf()
1 parent 270e2c1
Changed files (1)
src/Autodoc.zig
@@ -2376,7 +2376,7 @@ fn tryResolveRefPath(
                 path[i + 1] = (try self.cteTodo("match failure")).expr;
                 continue :outer;
             },
-            .comptimeExpr, .call => {
+            .comptimeExpr, .call, .typeOf => {
                 // Since we hit a cte, we leave the remaining strings unresolved
                 // and completely give up on resolving this decl path.
                 //decl_path.hasCte = true;