From 41da6b88efa93f286bf3337f0d89e4694604d588 Mon Sep 17 00:00:00 2001 From: Alexandros Naskos Date: Tue, 23 Jun 2020 19:57:28 +0300 Subject: [PATCH] Resolve through comptime expressions --- src/analysis.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/analysis.zig b/src/analysis.zig index 39f5661..aed6f45 100644 --- a/src/analysis.zig +++ b/src/analysis.zig @@ -644,6 +644,10 @@ pub fn resolveTypeOfNodeInternal( } return null; }, + .Comptime => { + const ct = node.cast(ast.Node.Comptime).?; + return try resolveTypeOfNodeInternal(store, arena, .{ .node = ct.expr, .handle = handle }, bound_type_params); + }, .GroupedExpression => { const grouped = node.cast(ast.Node.GroupedExpression).?; return try resolveTypeOfNodeInternal(store, arena, .{ .node = grouped.expr, .handle = handle }, bound_type_params);