From 632fe260fef3a2e8c9c77beee1aa2ea2332e1825 Mon Sep 17 00:00:00 2001 From: tocariimaa Date: Tue, 21 Jan 2025 14:35:47 -0300 Subject: [PATCH] sema: return proc return type instead of proc type itself --- compiler/sema.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/sema.c b/compiler/sema.c index 110ad2f..3ddcc07 100644 --- a/compiler/sema.c +++ b/compiler/sema.c @@ -280,7 +280,7 @@ sema_proccall(SemaCtx *sctx, const AstProcCall *call, Location loc) for (isize i = 0; i < proc_arglen; ++i) { ; } - return fsym->dtype; + return fsym->dtype->proc.rettype; } /************ Semantic and type checking of expressions ************/