mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-05 16:09: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
ae40f8416f
commit
78960fcd11
3 changed files with 31 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