leo/compiler/tests/circuit/member_static_function_invalid.leo

9 lines
184 B
Plaintext
Raw Normal View History

circuit Circ {
function echo(x: u32) -> u32 {
return x
}
}
function main() -> u32 {
return Circ::echo(1u32) // echo is a non-static function and must be accessed using `.`
}