diff --git a/lang/src/son.rs b/lang/src/son.rs index 0adfeb4f..24f014d9 100644 --- a/lang/src/son.rs +++ b/lang/src/son.rs @@ -2911,7 +2911,10 @@ impl<'a> Codegen<'a> { && (!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"); + self.error( + body.pos(), + "function is makred inline but it contains controlflow or more then one call", + ); } // this is here because we report error in the inline function file