leo/compiler/tests/circuits/mutable_call_immutable_context.leo
2021-04-02 04:50:14 -04:00

12 lines
181 B
Plaintext

circuit TestMe {
x: u8,
function test_me(mut self) -> u8 {
self.x += 1;
return self.x
}
}
function main () {
const t = TestMe {x: 6u8}.test_me();
}