forked from M-Labs/nac3
fix grammar of some type error messages
This commit is contained in:
parent
d7b14dd705
commit
fd4bf12808
@ -188,7 +188,7 @@ impl Nac3 {
|
||||
let base_ty =
|
||||
match resolver.get_symbol_type(unifier, top_level_defs, primitives, "base".into()) {
|
||||
Ok(ty) => ty,
|
||||
Err(e) => return Some(format!("type error of object launching kernel: {}", e))
|
||||
Err(e) => return Some(format!("type error inside object launching kernel: {}", e))
|
||||
};
|
||||
|
||||
let fun_ty = if method_name.is_empty() {
|
||||
|
@ -80,7 +80,7 @@ impl<'a> Inferencer<'a> {
|
||||
}
|
||||
Err(e) => {
|
||||
return Err(format!(
|
||||
"type error of identifier `{}` ({}) at {}",
|
||||
"type error at identifier `{}` ({}) at {}",
|
||||
id, e, expr.location
|
||||
));
|
||||
}
|
||||
|
@ -371,7 +371,7 @@ impl<'a> fold::Fold<()> for Inferencer<'a> {
|
||||
}
|
||||
Err(e) => {
|
||||
return report_error(
|
||||
&format!("type error of identifier `{}` ({})", id, e),
|
||||
&format!("type error at identifier `{}` ({})", id, e),
|
||||
expr.location,
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user