mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-21 05:05:00 -07:00
Fix polymorphic record "too few" lacking error message
This commit is contained in:
+1
-1
@@ -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