leo/tests/compiler/circuits/self_member_undefined.leo

15 lines
189 B
Plaintext
Raw Normal View History

2021-05-05 11:37:51 +03:00
/*
namespace: Compile
expectation: Fail
*/
circuit Foo {
function bar() -> u32 {
return self.f;
}
}
2020-07-30 21:11:54 +03:00
function main() {
const foo = Foo { };
const err = foo.bar();
}