diff --git a/lang/src/son.rs b/lang/src/son.rs index 84d690c9..a6b8fb35 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;