mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Improve error message when a callback clashes with a property
(also continue, don't declare the the callback anyway)
This commit is contained in:
parent
6d29a66b52
commit
e6bd9dc8c4
2 changed files with 19 additions and 7 deletions
|
@ -45,4 +45,8 @@ SubElements := Rectangle {
|
|||
callback blah;
|
||||
// ^error{Cannot override callback 'blah'}
|
||||
}
|
||||
|
||||
property <bool> pressed;
|
||||
callback pressed;
|
||||
// ^error{Cannot declare callback 'pressed' when a property with the same name exists}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue