removing needless errors

Signed-off-by: Jakub Doka <jakub.doka2@gmail.com>
This commit is contained in:
Jakub Doka 2024-12-16 15:05:19 +01:00
parent b9b8233a53
commit c0d957e70c
No known key found for this signature in database
GPG key ID: C6E9A89936B8C143

View file

@ -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;