leo/tests/compiler/mutability/circuit_static_function_mut.leo
2021-05-03 17:28:53 +03:00

13 lines
143 B
Plaintext

/*
namespace: Compile
expectation: Fail
*/
circuit Foo {
function bar() {}
}
function main() {
let a = Foo { x: 1 };
a.bar = 0;
}