Error when mixing purity in callback aliases

Also adjust the way we report error while infering to avoid double
reporting errors
This commit is contained in:
Olivier Goffart 2022-12-14 20:32:00 +01:00 committed by Olivier Goffart
parent 1cbd61145e
commit 8fc7c2dafc
8 changed files with 75 additions and 22 deletions

View file

@ -34,5 +34,5 @@ Xxx := Rectangle {
}
callback xx <=> foo;
// ^error{Cannot bind to a function}
// ^error{Binding to callback 'xx' must bind to another callback}
}