1
0
Fork 0
mirror of synced 2025-09-23 20:28:36 +00:00

add test for public, update changelog

This commit is contained in:
dark64 2022-09-21 14:54:37 +02:00
parent dcb52a5581
commit e48afb678c
2 changed files with 9 additions and 1 deletions

View file

@ -1 +1 @@
Disallow the use of the `private` keyword on non-entrypoint functions Disallow the use of the `private` and `public` keywords on non-entrypoint functions

View file

@ -0,0 +1,8 @@
def mul(public field a) -> field { // `public` should not be allowed here
return a * a;
}
def main(field a, field b) {
assert(mul(a) == b);
return;
}