diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -191,7 +191,7 @@ graph_typescope(Scope *scope, Arena a) { | |||
191 | "<TD ALIGN=\"left\"> %s </TD>" | 191 | "<TD ALIGN=\"left\"> %s </TD>" |
192 | "<TD ALIGN=\"left\"> %s</TD>" | 192 | "<TD ALIGN=\"left\"> %s</TD>" |
193 | "</TR>", | 193 | "</TR>", |
194 | type->key, type->val); | 194 | type->key, type->val.name); |
195 | type = symmap_next(&iter, &a); | 195 | type = symmap_next(&iter, &a); |
196 | } | 196 | } |
197 | println("</TABLE>>];"); | 197 | println("</TABLE>>];"); |
@@ -900,8 +900,8 @@ type_inference(Analyzer *a, Node *node, Scope *scope) { | |||
900 | eprintln( | 900 | eprintln( |
901 | "%s:%d:%d: error: struct incomplete struct literal " | 901 | "%s:%d:%d: error: struct incomplete struct literal " |
902 | "'%s', did you mean to use %s:{}?", | 902 | "'%s', did you mean to use %s:{}?", |
903 | a->file_name, node->line, node->col, type->val, | 903 | a->file_name, node->line, node->col, symbol, |
904 | type->val); | 904 | symbol); |
905 | a->err = true; | 905 | a->err = true; |
906 | return cstr(""); | 906 | return cstr(""); |
907 | } else { | 907 | } else { |