mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 22:31:14 +00:00
Allow to give a name to for
and if
This commit is contained in:
parent
52e85933ed
commit
42c25248a8
8 changed files with 121 additions and 49 deletions
|
@ -29,5 +29,12 @@ SubElements := Rectangle {
|
|||
self := Rectangle {}
|
||||
// ^error{'self' is a reserved id}
|
||||
}
|
||||
|
||||
if (true) : root := Rectangle {
|
||||
// ^error{'root' is a reserved id}
|
||||
|
||||
for _ in 1 : self := Rectangle { }
|
||||
// ^error{'self' is a reserved id}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue