mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-06 16:19:07 -04:00
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:
parent
fc497ac9e6
commit
207255897b
3 changed files with 30 additions and 3 deletions
|
@ -5,5 +5,5 @@ Overlay {
|
|||
}
|
||||
|
||||
Label {
|
||||
label: bind (label.parent).child.label;
|
||||
label: bind ((Label) label.parent.child).label;
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue