leo/tests/compiler/structs/member_variable_fail.leo
2022-10-05 16:53:49 -07:00

16 lines
207 B
Plaintext

/*
namespace: Compile
expectation: Fail
*/
program test.aleo {
struct Foo {
x: u32;
}
function main() {
const a: foo = Foo { x: 1u32 };
const err = a.y;
}
}