mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-09 14:22:18 -04:00
Check for nullptr when none of the options match in a proc group
This commit is contained in:
1 parent
7aff98a150
commit
910ddb4626
1 file changed
+1
-1
+1
-1
@@ -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