mirror of
https://github.com/odin-lang/Odin.git
synced 2026-07-11 02:19:30 +00:00
Check for nullptr when none of the options match in a proc group
This commit is contained in:
@@ -7840,7 +7840,7 @@ gb_internal CallArgumentData check_call_arguments_proc_group(CheckerContext *c,
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (all_the_same) {
|
||||
if (all_the_same && first_results != nullptr) {
|
||||
GB_ASSERT_MSG(is_type_tuple(first_results), "%s", type_to_string(first_results));
|
||||
data.result_type = first_results;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user