Test purity of model expression

This commit is contained in:
Olivier Goffart 2024-01-09 12:56:13 +01:00
parent a7934438ad
commit 638985612c

View file

@ -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;
}
}