mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-01 12:24:16 +00:00
First stage of cleaning up the export handling of the slint root component (#2095)
We implicitly export the last component of a .slint file to the generator. Issue a warning when that happens and suggest to export it explicitly.
This commit is contained in:
parent
33d68687c2
commit
24dcef5fed
130 changed files with 175 additions and 143 deletions
|
|
@ -138,7 +138,7 @@ Foo_Legacy := Rectangle {
|
|||
}
|
||||
|
||||
|
||||
Bar_Legacy := Rectangle {
|
||||
export Bar_Legacy := Rectangle {
|
||||
pure callback xc1 <=> f.c1;
|
||||
// ^error{Purity of callbacks 'xc1' and 'f.c1' doesn't match}
|
||||
callback xc2 <=> f.c2;
|
||||
|
|
@ -149,4 +149,4 @@ Bar_Legacy := Rectangle {
|
|||
// ^warning{Call of impure callback 'c1'}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue