leo/tests/compiler/mutability/circuit_static_function_mut_fail.leo
2021-05-05 18:29:44 +03:00

14 lines
144 B
Plaintext

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