leo/tests/compiler/circuits/member_variable_fail.leo

14 lines
150 B
Plaintext
Raw Normal View History

2022-06-23 11:38:33 +03:00
/*
namespace: Compile
expectation: Fail
*/
circuit Foo {
x: u32;
}
function main() {
const a: foo = Foo { x: 1u32 };
const err = a.y;
}