leo/tests/parser/circuits/const_functions.leo

24 lines
376 B
Plaintext
Raw Normal View History

2022-01-28 21:34:02 +03:00
/*
namespace: Parse
expectation: Pass
*/
circuit X {
x: u32
const function x() {
return ();
}
const function x(self) {
return ();
}
const function c(const self) {
return ();
}
const function b(const self, x: u32) {
return ();
}
const function b(const self, const x: u32) {
return ();
}
}