Split Expression::CallbackReference and Expresison::FunctionReference

This commit is contained in:
Olivier Goffart 2022-12-01 15:27:31 +01:00 committed by Olivier Goffart
parent 4672e54f5e
commit dfdbc942f6
14 changed files with 74 additions and 49 deletions

View file

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

View file

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