2021-01-25 18:17:42 +03:00
|
|
|
circuit Foo {
|
2021-04-29 22:22:17 +03:00
|
|
|
a: u8;
|
2021-01-25 18:17:42 +03:00
|
|
|
|
|
|
|
function set_a(self, new: u8) {
|
|
|
|
self.a = new;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function main() {
|
2021-03-18 22:19:07 +03:00
|
|
|
let f = Foo { a: 0u8 };
|
2021-01-25 18:17:42 +03:00
|
|
|
|
|
|
|
f.set_a(1u8);
|
|
|
|
}
|