core/fix: stringify type in expected concrete type error

This commit is contained in:
lyken 2024-08-19 16:44:54 +08:00
parent efefa13b7e
commit cc4c2593f7
No known key found for this signature in database
GPG Key ID: 3BD5FC6AC8325DD8
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ impl<'a> Inferencer<'a> {
return Err(HashSet::from([format!(
"expected concrete type at {} but got {}",
expr.location,
self.unifier.get_ty(*ty).get_type_name()
self.unifier.stringify(*ty)
)]));
}
}