diff --git a/tests/tests/parser/program/record_with_visibility.leo b/tests/tests/parser/program/record_with_visibility.leo new file mode 100644 index 0000000000..61b206d435 --- /dev/null +++ b/tests/tests/parser/program/record_with_visibility.leo @@ -0,0 +1,11 @@ +/* +namespace: Parse +expectation: Pass +*/ + +program test.aleo { + record token { + private owner: address, + private gates: u64, + } +} diff --git a/tests/tests/parser/program/struct_with_visibility.leo b/tests/tests/parser/program/struct_with_visibility.leo new file mode 100644 index 0000000000..7a2acb4813 --- /dev/null +++ b/tests/tests/parser/program/struct_with_visibility.leo @@ -0,0 +1,12 @@ +/* +namespace: Parse +expectation: Pass +*/ + +program test.aleo { + struct foo { + public baz: address, + private floo: u64, + data: bool, + } +}