Skip to content

Commit

Permalink
fix: Error message for assigning the wrong type is backwards #2804 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jfecher authored Sep 22, 2023
1 parent 8ed8832 commit b2d62bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/noirc_frontend/src/hir/type_check/stmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ impl<'interner> TypeChecker<'interner> {
let span = self.interner.expr_span(&assign_stmt.expression);
self.unify_with_coercions(&expr_type, &lvalue_type, assign_stmt.expression, || {
TypeCheckError::TypeMismatchWithSource {
actual: lvalue_type.clone(),
expected: expr_type.clone(),
actual: expr_type.clone(),
expected: lvalue_type.clone(),
span,
source: Source::Assignment,
}
Expand Down

0 comments on commit b2d62bf

Please sign in to comment.