From 32ab8fcf99df786c264ca566799b022c66cca34b Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 25 Jul 2016 11:14:25 +0100 Subject: `alias` and unified parameters lists for procedures and structures. --- src/printer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/printer.cpp') diff --git a/src/printer.cpp b/src/printer.cpp index 3ce94aefb..f0878b056 100644 --- a/src/printer.cpp +++ b/src/printer.cpp @@ -166,10 +166,10 @@ void print_ast(AstNode *node, isize indent) { print_indent(indent); gb_printf("(type:proc)(%td -> %td)\n", node->procedure_type.param_count, node->procedure_type.result_count); print_ast(node->procedure_type.param_list, indent+1); - if (node->procedure_type.results_list) { + if (node->procedure_type.result_list) { print_indent(indent+1); gb_printf("->\n"); - print_ast(node->procedure_type.results_list, indent+1); + print_ast(node->procedure_type.result_list, indent+1); } break; case AstNode_Field: -- cgit v1.2.3