Resolve through comptime expressions

This commit is contained in:
Alexandros Naskos 2020-06-23 19:57:28 +03:00
parent 6d75551f7a
commit 41da6b88ef

View File

@ -644,6 +644,10 @@ pub fn resolveTypeOfNodeInternal(
} }
return null; return null;
}, },
.Comptime => {
const ct = node.cast(ast.Node.Comptime).?;
return try resolveTypeOfNodeInternal(store, arena, .{ .node = ct.expr, .handle = handle }, bound_type_params);
},
.GroupedExpression => { .GroupedExpression => {
const grouped = node.cast(ast.Node.GroupedExpression).?; const grouped = node.cast(ast.Node.GroupedExpression).?;
return try resolveTypeOfNodeInternal(store, arena, .{ .node = grouped.expr, .handle = handle }, bound_type_params); return try resolveTypeOfNodeInternal(store, arena, .{ .node = grouped.expr, .handle = handle }, bound_type_params);