mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-22 17:11:42 +03:00
19 lines
233 B
Plaintext
19 lines
233 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
*/
|
|
|
|
circuit Foo {
|
|
a: u8,
|
|
|
|
function use_a(const self) -> u8 {
|
|
return self.a + 1;
|
|
}
|
|
}
|
|
|
|
function main() {
|
|
let f = Foo { a: 0u8 };
|
|
|
|
console.assert(1u8 == f.use_a());
|
|
}
|