mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Test purity of model expression
This commit is contained in:
parent
a7934438ad
commit
638985612c
1 changed files with 6 additions and 0 deletions
|
@ -63,6 +63,12 @@ export component Foo {
|
|||
|
||||
pw := PopupWindow {}
|
||||
fs := FocusScope {}
|
||||
|
||||
callback model() -> [int];
|
||||
for xx in model() : Rectangle {
|
||||
// ^error{Call of impure callback 'model'}
|
||||
property <int> abc: xx;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue