diff options
| author | gingerBill <ginger.bill.22@gmail.com> | 2016-07-25 11:14:25 +0100 |
|---|---|---|
| committer | gingerBill <ginger.bill.22@gmail.com> | 2016-07-25 11:14:25 +0100 |
| commit | 32ab8fcf99df786c264ca566799b022c66cca34b (patch) | |
| tree | 79b3f9642c1e49c3995b417fd8b599a20974f564 /src/printer.cpp | |
| parent | 9d8355d3612e65a5764640fb972bc4ef9f013088 (diff) | |
`alias` and unified parameters lists for procedures and structures.
Diffstat (limited to 'src/printer.cpp')
| -rw-r--r-- | src/printer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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: |