mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-28 13:54:57 +00:00
Update math and math/linalg; add "pure_none" calling convention
This commit is contained in:
@@ -7655,7 +7655,7 @@ ExprKind check_call_expr(CheckerContext *c, Operand *operand, Ast *call, Ast *pr
|
||||
|
||||
{
|
||||
if (c->curr_proc_calling_convention == ProcCC_Pure) {
|
||||
if (pt->kind == Type_Proc && pt->Proc.calling_convention != ProcCC_Pure) {
|
||||
if (pt->kind == Type_Proc && pt->Proc.calling_convention != ProcCC_Pure && pt->Proc.calling_convention != ProcCC_PureNone) {
|
||||
error(call, "Only \"pure\" procedure calls are allowed within a \"pure\" procedure");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user