expressions: Add casts

These are sometimes necessary. In the future the compiler should be able
to detect when they will be necessary so we don't have to find out at
runtime.
This commit is contained in:
James Westman 2022-03-16 00:05:36 -05:00
parent ae40f8416f
commit 78960fcd11
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
3 changed files with 31 additions and 3 deletions

View file

@ -5,5 +5,5 @@ Overlay {
}
Label {
label: bind (label.parent).child.label;
label: bind ((Label) label.parent.child).label;
}

View file

@ -8,7 +8,7 @@
</object>
<object class="GtkLabel">
<binding name="label">
<lookup name="label">
<lookup name="label" type="GtkLabel">
<lookup name="child">
<lookup name="parent">
<constant>label</constant>