WIP: pure qualifier for callback and functions

This commit is contained in:
Olivier Goffart 2022-12-14 19:23:00 +01:00 committed by Olivier Goffart
parent 8a09043e63
commit 1cbd61145e
34 changed files with 366 additions and 93 deletions

View file

@ -5,7 +5,7 @@ Compo1 := Rectangle {
property <int> a : aa();
// ^error{The binding for the property 'a' is part of a binding loop}
callback aa() -> int;
pure callback aa() -> int;
function factorial(n: int) -> int {
// ^error{The binding for the property 'factorial' is part of a binding loop}
@ -14,7 +14,7 @@ Compo1 := Rectangle {
property <int> b;
public function bb() -> int { return b; }
public pure function bb() -> int { return b; }
// ^error{The binding for the property 'bb' is part of a binding loop}
}