Add parser tests for records and structs with visibilities

This commit is contained in:
d0cd 2023-02-10 21:38:38 -08:00
parent f269a3c609
commit cd21c1b01e
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,11 @@
/*
namespace: Parse
expectation: Pass
*/
program test.aleo {
record token {
private owner: address,
private gates: u64,
}
}

View File

@ -0,0 +1,12 @@
/*
namespace: Parse
expectation: Pass
*/
program test.aleo {
struct foo {
public baz: address,
private floo: u64,
data: bool,
}
}