This commit is contained in:
collin 2022-07-02 18:17:43 -07:00
parent c16a93ab44
commit dd75133e22
2 changed files with 3 additions and 2 deletions

View File

@ -328,7 +328,8 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> {
match (t1, t2) {
(Some(Type::Address), _) | (_, Some(Type::Address)) => {
// Emit an error for address comparison.
self.handler.emit_err(TypeCheckerError::compare_address(input.span()).into());
self.handler
.emit_err(TypeCheckerError::compare_address(input.span()).into());
}
(Some(Type::Field), t2) => {
// Assert rhs is field.

View File

@ -268,7 +268,7 @@ create_messages!(
@formatted
compare_address {
args: (),
msg: format!("Comparison `<, <=, >, >=` is not supported for the address type."),
msg: "Comparison `<, <=, >, >=` is not supported for the address type.",
help: None,
}
);