mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Improve expression type checking
This commit is contained in:
parent
b636d9ed71
commit
98ba7d467a
11 changed files with 160 additions and 55 deletions
5
tests/samples/expr_closure_args.blp
Normal file
5
tests/samples/expr_closure_args.blp
Normal file
|
@ -0,0 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Label {
|
||||
label: bind $my-closure (true, 10, "Hello") as (string);
|
||||
}
|
13
tests/samples/expr_closure_args.ui
Normal file
13
tests/samples/expr_closure_args.ui
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkLabel">
|
||||
<binding name="label">
|
||||
<closure function="my-closure" type="gchararray">
|
||||
<constant type="gboolean">true</constant>
|
||||
<constant type="gint">10</constant>
|
||||
<constant type="gchararray">Hello</constant>
|
||||
</closure>
|
||||
</binding>
|
||||
</object>
|
||||
</interface>
|
Loading…
Add table
Add a link
Reference in a new issue