diff --git a/lang/src/son.rs b/lang/src/son.rs index e41fbf1c1..fb13e5437 100644 --- a/lang/src/son.rs +++ b/lang/src/son.rs @@ -2575,7 +2575,7 @@ impl<'a> Codegen<'a> { mem::replace(&mut self.ci.inline_ret, prev_inline_ret)?; if is_inline && ctrl.get() != prev_ctrl - && (!self.ci.nodes[ctrl.get()].kind.is_eca() + && (!self.ci.nodes[ctrl.get()].kind.is_call() || self.ci.nodes[ctrl.get()].inputs[0] != prev_ctrl) { self.error(body.pos(), "function is makred inline but it contains controlflow");