forked from M-Labs/nac3
1
0
Fork 0

fix grammar of some type error messages

This commit is contained in:
Sebastien Bourdeauducq 2022-01-14 16:56:23 +08:00
parent d7b14dd705
commit fd4bf12808
3 changed files with 3 additions and 3 deletions

View File

@ -188,7 +188,7 @@ impl Nac3 {
let base_ty = let base_ty =
match resolver.get_symbol_type(unifier, top_level_defs, primitives, "base".into()) { match resolver.get_symbol_type(unifier, top_level_defs, primitives, "base".into()) {
Ok(ty) => ty, 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() { let fun_ty = if method_name.is_empty() {

View File

@ -80,7 +80,7 @@ impl<'a> Inferencer<'a> {
} }
Err(e) => { Err(e) => {
return Err(format!( return Err(format!(
"type error of identifier `{}` ({}) at {}", "type error at identifier `{}` ({}) at {}",
id, e, expr.location id, e, expr.location
)); ));
} }

View File

@ -371,7 +371,7 @@ impl<'a> fold::Fold<()> for Inferencer<'a> {
} }
Err(e) => { Err(e) => {
return report_error( return report_error(
&format!("type error of identifier `{}` ({})", id, e), &format!("type error at identifier `{}` ({})", id, e),
expr.location, expr.location,
); );
} }