diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-04-21 17:56:29 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-04-21 17:56:29 +0100 |
| commit | 91ed51ff5c9c49a739f6a835acf6df492690e2cd (patch) | |
| tree | 958418f9bf05865f11ece0b3a88183e25174089b /src/check_expr.c | |
| parent | 4d0afc55c353563607206a085432c258e3dc92e1 (diff) | |
Continue work on custom SSA; Fix double declaration in `when` statements
Diffstat (limited to 'src/check_expr.c')
| -rw-r--r-- | src/check_expr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/check_expr.c b/src/check_expr.c index d3338f9c8..75e848903 100644 --- a/src/check_expr.c +++ b/src/check_expr.c @@ -5118,7 +5118,9 @@ ExprKind check_expr_base_internal(Checker *c, Operand *o, AstNode *node, Type *t case Type_Record: { if (!is_type_struct(t) && !is_type_union(t)) { if (cl->elems.count != 0) { - error_node(node, "Illegal compound literal"); + gbString type_str = type_to_string(type); + error_node(node, "Illegal compound literal type `%s`", type_str); + gb_string_free(type_str); } break; } |