ability to infer parameter types

This commit is contained in:
Andrew Kelley
2016-09-08 00:24:48 -04:00
parent de7e88c38f
commit d324b1befa
10 changed files with 245 additions and 82 deletions

View File

@@ -213,6 +213,8 @@ static const char *node_type_str(NodeType node_type) {
return "ErrorType";
case NodeTypeTypeLiteral:
return "TypeLiteral";
case NodeTypeVarLiteral:
return "VarLiteral";
}
zig_unreachable();
}
@@ -672,6 +674,9 @@ static void render_node(AstRender *ar, AstNode *node) {
case NodeTypeTypeLiteral:
fprintf(ar->f, "type");
break;
case NodeTypeVarLiteral:
fprintf(ar->f, "var");
break;
}
}