add test for public, update changelog
This commit is contained in:
parent
dcb52a5581
commit
e48afb678c
2 changed files with 9 additions and 1 deletions
|
@ -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
|
|
@ -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;
|
||||||
|
}
|
Loading…
Reference in a new issue