Skip to content

Commit

Permalink
fix: Error message for assigning the wrong type is backwards noir-lan…
Browse files Browse the repository at this point in the history
  • Loading branch information
jfecher authored and Sakapoi committed Oct 19, 2023
1 parent b1f4f9b commit a100103
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 a100103

Please sign in to comment.