removing needless errors
Signed-off-by: Jakub Doka <jakub.doka2@gmail.com>
This commit is contained in:
parent
b9b8233a53
commit
c0d957e70c
|
@ -4950,6 +4950,7 @@ impl<'a> Codegen<'a> {
|
||||||
let template = match func.expand() {
|
let template = match func.expand() {
|
||||||
ty::Kind::Func(f) => return Some(f),
|
ty::Kind::Func(f) => return Some(f),
|
||||||
ty::Kind::Template(t) => t,
|
ty::Kind::Template(t) => t,
|
||||||
|
ty::Kind::NEVER => return None,
|
||||||
_ => {
|
_ => {
|
||||||
self.error(pos, fa!("compiler cant (yet) call '{}'", self.ty_display(func)));
|
self.error(pos, fa!("compiler cant (yet) call '{}'", self.ty_display(func)));
|
||||||
return None;
|
return None;
|
||||||
|
|
Loading…
Reference in a new issue