Skip to content

Commit b2d62bf

Browse files
author
jfecher
authored
fix: Error message for assigning the wrong type is backwards #2804 (#2805)
1 parent 8ed8832 commit b2d62bf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • compiler/noirc_frontend/src/hir/type_check

compiler/noirc_frontend/src/hir/type_check/stmt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ impl<'interner> TypeChecker<'interner> {
115115
let span = self.interner.expr_span(&assign_stmt.expression);
116116
self.unify_with_coercions(&expr_type, &lvalue_type, assign_stmt.expression, || {
117117
TypeCheckError::TypeMismatchWithSource {
118-
actual: lvalue_type.clone(),
119-
expected: expr_type.clone(),
118+
actual: expr_type.clone(),
119+
expected: lvalue_type.clone(),
120120
span,
121121
source: Source::Assignment,
122122
}

0 commit comments

Comments
 (0)