mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-01 20:31:27 +00:00
WIP: pure qualifier for callback and functions
This commit is contained in:
parent
8a09043e63
commit
1cbd61145e
34 changed files with 366 additions and 93 deletions
|
|
@ -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}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue