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 ************/