mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 18:29:09 +00:00
Split Expression::CallbackReference and Expresison::FunctionReference
This commit is contained in:
parent
4672e54f5e
commit
dfdbc942f6
14 changed files with 74 additions and 49 deletions
|
@ -41,6 +41,10 @@ Xxx := Rectangle {
|
|||
|
||||
Abc { par => {} }
|
||||
// ^error{'par' is not a callback in Abc}
|
||||
aa := Abc { par: 42; }
|
||||
// ^error{Cannot assign to par in Abc because it does not have a valid property type}
|
||||
Abc { par <=> aa.par; }
|
||||
// ^error{Cannot assign to par in Abc because it does not have a valid property type}
|
||||
fooo => {}
|
||||
// ^error{'fooo' is not a callback in Rectangle}
|
||||
|
||||
|
|
|
@ -19,8 +19,8 @@ Xxx := Rectangle {
|
|||
|
||||
root.foo.hello(45);
|
||||
// ^error{Cannot access fields of a function}
|
||||
|
||||
|
||||
}
|
||||
|
||||
callback xx <=> foo;
|
||||
// ^error{Cannot bind to a function}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue