leo/tests/compiler/mutability/circuit_static_function_mut_fail.leo

14 lines
144 B
Plaintext
Raw Normal View History

2021-05-03 17:28:53 +03:00
/*
namespace: Compile
expectation: Fail
*/
2020-09-03 04:01:47 +03:00
circuit Foo {
2020-12-01 19:54:51 +03:00
function bar() {}
2020-09-03 04:01:47 +03:00
}
function main() {
let a = Foo { x: 1 };
2020-09-03 04:01:47 +03:00
a.bar = 0;
2021-05-05 18:29:44 +03:00
}