mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-28 05:44:57 +00:00
Amend allocation procedures with caller location; Compound literals missing type can determine type in certain cases.
This commit is contained in:
@@ -2223,6 +2223,9 @@ AstNode *parse_operand(AstFile *f, bool lhs) {
|
||||
return ast_basic_lit(f, token);
|
||||
}
|
||||
|
||||
case Token_OpenBrace:
|
||||
if (!lhs) return parse_literal_value(f, nullptr);
|
||||
break;
|
||||
|
||||
case Token_OpenParen: {
|
||||
Token open, close;
|
||||
|
||||
Reference in New Issue
Block a user