Skip to content

Commit

Permalink
Better name for comptime struct definition test program
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Sep 6, 2024
1 parent 528d531 commit 6fa1fca
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 21 deletions.
11 changes: 0 additions & 11 deletions test_programs/compile_success_empty/comptime_struct/src/main.nr

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "comptime_struct"
name = "comptime_struct_definition"
type = "bin"
authors = [""]
compiler_version = ">=0.31.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
fn main() {}

#[my_comptime_fn]
struct MyType<A, B, C> {
field1: [A; 10],
Expand All @@ -24,3 +22,15 @@ comptime fn mutate_struct_fields(s: StructDefinition) {
];
s.set_fields(fields);
}

mod foo {
#[attr]
struct Foo {}

fn attr(s: StructDefinition) {
assert_eq(s.module().name(), quote { foo });
}
}

fn main() {}

This file was deleted.

0 comments on commit 6fa1fca

Please sign in to comment.