Skip to content

Commit

Permalink
"fmt"
Browse files Browse the repository at this point in the history
  • Loading branch information
crypdoughdoteth committed Oct 28, 2024
1 parent cd1b368 commit 86c60dd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/type_checker/checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,12 +368,10 @@ impl<B: Backend> TypeChecker<B> {
// only allow fields
match (&lhs_node.typ, &rhs_node.typ) {
(TyKind::Field { .. }, TyKind::Field { .. }) => (),
_ => {
Err(self.error(
ErrorKind::MismatchType(lhs_node.typ.clone(), rhs_node.typ.clone()),
expr.span,
))?
}
_ => Err(self.error(
ErrorKind::MismatchType(lhs_node.typ.clone(), rhs_node.typ.clone()),
expr.span,
))?,
}
}

Expand Down

0 comments on commit 86c60dd

Please sign in to comment.