From 4ebf1c799613502f2af7c78a959ff51d3b58e02a Mon Sep 17 00:00:00 2001 From: Jakub Doka Date: Wed, 25 Dec 2024 21:34:58 +0100 Subject: [PATCH] fixing outdated error message Signed-off-by: Jakub Doka --- lang/src/son.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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