Skip to content

Commit

Permalink
Merge branch 'master' into ab/error-on-duplicate-struct-field
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Jul 23, 2024
2 parents d1cadbb + 453ed59 commit e78dd66
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions compiler/noirc_frontend/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2485,6 +2485,16 @@ fn trait_impl_generics_count_mismatch() {
assert_eq!(*found, 1);
}

#[test]
fn bit_not_on_untyped_integer() {
let src = r#"
fn main() {
let _: u32 = 3 & !1;
}
"#;
assert_no_errors(src);
}

#[test]
fn duplicate_struct_field() {
let src = r#"
Expand Down

0 comments on commit e78dd66

Please sign in to comment.