sema: return proc return type instead of proc type itself

This commit is contained in:
tocariimaa 2025-01-21 14:35:47 -03:00
parent 53d1825d5b
commit 632fe260fe

View file

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