fix: typeOf "match failed" with a call after @TypeOf()

This commit is contained in:
Vallahor
2022-05-26 16:57:20 -03:00
committed by Andrew Kelley
parent 270e2c18bf
commit 1792842808

View File

@@ -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;