From 81500697db7b5e17733db29cd7fbf8091de283cc Mon Sep 17 00:00:00 2001 From: Alexandros Naskos Date: Mon, 29 Mar 2021 12:40:52 +0300 Subject: [PATCH] Fixed crash in makeScopeInternal --- src/analysis.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analysis.zig b/src/analysis.zig index 99a8ed3..5f486bd 100644 --- a/src/analysis.zig +++ b/src/analysis.zig @@ -2749,7 +2749,7 @@ fn makeScopeInternal( } // Visit parameter types to pick up any error sets and enum // completions - try makeScopeInternal( + if (param.type_expr != 0) try makeScopeInternal( allocator, scopes, error_completions,