Skip to content

Commit

Permalink
fix: Fix struct or tuple field assignment failing with generics (#1317)
Browse files Browse the repository at this point in the history
Fix #1315
  • Loading branch information
jfecher authored May 8, 2023
1 parent b327422 commit d872890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/noirc_frontend/src/hir/type_check/stmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl<'interner> TypeChecker<'interner> {
(Type::Error, None)
};

let (typ, field_index) = match result {
let (typ, field_index) = match result.follow_bindings() {
Type::Struct(def, args) => {
match def.borrow().get_field(&field_name.0.contents, &args) {
Some((field, index)) => (field, Some(index)),
Expand Down

0 comments on commit d872890

Please sign in to comment.