mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
compiler: Ignore leading whitespace when parsing
... and update all out test cases accordingly.
This commit is contained in:
parent
1fbbdf83b2
commit
bbdd6aeab7
49 changed files with 187 additions and 185 deletions
|
@ -24,19 +24,19 @@ export Xxx := Rectangle {
|
|||
|
||||
|
||||
function background() {}
|
||||
// ^error{Cannot declare function 'background' when a property with the same name exists}
|
||||
// ^error{Cannot declare function 'background' when a property with the same name exists}
|
||||
|
||||
|
||||
Abc {
|
||||
property <int> par;
|
||||
// ^error{Cannot declare property 'par' when a callback with the same name exists}
|
||||
callback par();
|
||||
// ^error{Cannot declare callback 'par' when a function with the same name exists}
|
||||
// ^error{Cannot declare callback 'par' when a function with the same name exists}
|
||||
}
|
||||
|
||||
TouchArea {
|
||||
function clicked() {}
|
||||
// ^error{Cannot override 'clicked'}
|
||||
// ^error{Cannot override 'clicked'}
|
||||
}
|
||||
|
||||
Abc { par => {} }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue