mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-16 02:42:22 -07:00
Begin minimizing Ast size
This commit is contained in:
+3
-2
@@ -1939,8 +1939,9 @@ bool check_procedure_type(CheckerContext *ctx, Type *type, Ast *proc_type_node,
|
||||
error(proc_type_node, "A procedure type with the #optional_second tag requires 2 return values, got %td", result_count);
|
||||
} else {
|
||||
bool ok = false;
|
||||
if (proc_type_node->file && proc_type_node->file->pkg) {
|
||||
ok = proc_type_node->file->pkg->scope == ctx->info->runtime_package->scope;
|
||||
AstFile *file = proc_type_node->file();
|
||||
if (file && file->pkg) {
|
||||
ok = file->pkg->scope == ctx->info->runtime_package->scope;
|
||||
}
|
||||
|
||||
if (!ok) {
|
||||
|
||||
Reference in New Issue
Block a user