mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
language: Add closure expressions
This commit is contained in:
parent
5cf9b63547
commit
59aa054c4c
10 changed files with 96 additions and 7 deletions
5
tests/sample_errors/expr_closure_not_cast.blp
Normal file
5
tests/sample_errors/expr_closure_not_cast.blp
Normal file
|
@ -0,0 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Label {
|
||||
label: bind $closure();
|
||||
}
|
1
tests/sample_errors/expr_closure_not_cast.err
Normal file
1
tests/sample_errors/expr_closure_not_cast.err
Normal file
|
@ -0,0 +1 @@
|
|||
4,15,10,Closure expression must be cast to the closure's return type
|
Loading…
Add table
Add a link
Reference in a new issue