1
0
forked from M-Labs/nac3

fix error message string (2)

This commit is contained in:
Sebastien Bourdeauducq 2022-03-02 08:33:10 +08:00
parent da039e3acf
commit 59ac5aae8a

View File

@ -923,7 +923,7 @@ impl<'a> Inferencer<'a> {
(Some((ty, true)), _) => Ok(*ty),
(Some((ty, false)), false) => Ok(*ty),
(Some((_, false)), true) => {
report_error(&format!("Field {} should be immutable", attr), value.location)
report_error(&format!("Field `{}` is immutable", attr), value.location)
}
(None, _) => {
let t = self.unifier.stringify(ty);