mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-30 01:44:36 +00:00
Check type_expr in check_procedure_param_polymorphic_type
Fixes #4523 assert.
This commit is contained in:
committed by
flysand7
parent
c572c80a64
commit
21ff9856d4
@@ -2366,8 +2366,7 @@ gb_internal Type *check_get_results(CheckerContext *ctx, Scope *scope, Ast *_res
|
||||
}
|
||||
|
||||
gb_internal void check_procedure_param_polymorphic_type(CheckerContext *ctx, Type *type, Ast *type_expr) {
|
||||
GB_ASSERT_NOT_NULL(type_expr);
|
||||
if (type == nullptr || ctx->in_polymorphic_specialization) { return; }
|
||||
if (type == nullptr || type_expr == nullptr || ctx->in_polymorphic_specialization) { return; }
|
||||
if (!is_type_polymorphic_record_unspecialized(type)) { return; }
|
||||
|
||||
bool invalid_polymorpic_type_use = false;
|
||||
|
||||
Reference in New Issue
Block a user