From c0d957e70c7146f2c788a7b410632a940a18768f Mon Sep 17 00:00:00 2001 From: Jakub Doka Date: Mon, 16 Dec 2024 15:05:19 +0100 Subject: [PATCH] removing needless errors Signed-off-by: Jakub Doka --- lang/src/son.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lang/src/son.rs b/lang/src/son.rs index 84d690c..a6b8fb3 100644 --- a/lang/src/son.rs +++ b/lang/src/son.rs @@ -4950,6 +4950,7 @@ impl<'a> Codegen<'a> { let template = match func.expand() { ty::Kind::Func(f) => return Some(f), ty::Kind::Template(t) => t, + ty::Kind::NEVER => return None, _ => { self.error(pos, fa!("compiler cant (yet) call '{}'", self.ty_display(func))); return None;