mirror of
https://github.com/odin-lang/Odin.git
synced 2026-07-30 19:07:49 +00:00
Fix polymorphic record "too few" lacking error message
This commit is contained in:
@@ -937,7 +937,7 @@ Type *type_of_expr(Ast *expr) {
|
||||
}
|
||||
|
||||
Entity *implicit_entity_of_node(Ast *clause) {
|
||||
if (clause->kind == Ast_CaseClause) {
|
||||
if (clause != nullptr && clause->kind == Ast_CaseClause) {
|
||||
return clause->CaseClause.implicit_entity;
|
||||
}
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user