leo/tests/compiler/circuits/self_member_undefined.leo
2021-05-05 11:37:51 +03:00

15 lines
189 B
Plaintext

/*
namespace: Compile
expectation: Fail
*/
circuit Foo {
function bar() -> u32 {
return self.f;
}
}
function main() {
const foo = Foo { };
const err = foo.bar();
}