Skip to content

Commit

Permalink
chore: add regression test for #3051
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Apr 16, 2024
1 parent 1fa510a commit 373ffd2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test_programs/execution_success/regression_3051/Nargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
name = "regression_3051"
type = "bin"
authors = [""]
compiler_version = ">=0.27.0"

[dependencies]
13 changes: 13 additions & 0 deletions test_programs/execution_success/regression_3051/src/main.nr
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
trait Foo {
fn foo(self) -> Field;
}

impl Foo for Field {
fn foo(self) -> Field {
self + 1
}
}

fn main() {
dep::std::println(1.foo());
}

0 comments on commit 373ffd2

Please sign in to comment.