Improve error message when a callback clashes with a property

(also continue, don't declare the the callback anyway)
This commit is contained in:
Simon Hausmann 2022-11-16 09:21:11 +01:00 committed by Simon Hausmann
parent 6d29a66b52
commit e6bd9dc8c4
2 changed files with 19 additions and 7 deletions

View file

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