leo/tests/compiler/circuits/inline_fail.leo

14 lines
150 B
Plaintext
Raw Normal View History

2021-05-05 11:37:51 +03:00
/*
namespace: Compile
expectation: Fail
*/
2020-07-17 06:47:47 +03:00
circuit Foo {
x: u32;
2020-05-20 07:59:00 +03:00
}
function main() {
2021-05-05 11:37:51 +03:00
// no member y in Foo
const a = Foo { y: 0u32 };
2021-05-05 11:37:51 +03:00
}