mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
language: Add cast expressions
This commit is contained in:
parent
2033bd9e16
commit
5cf9b63547
15 changed files with 122 additions and 20 deletions
5
tests/sample_errors/expr_cast_conversion.blp
Normal file
5
tests/sample_errors/expr_cast_conversion.blp
Normal file
|
@ -0,0 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Overlay overlay {
|
||||
margin-bottom: bind overlay.child as (Adjustment).value;
|
||||
}
|
1
tests/sample_errors/expr_cast_conversion.err
Normal file
1
tests/sample_errors/expr_cast_conversion.err
Normal file
|
@ -0,0 +1 @@
|
|||
4,37,15,Invalid cast. No instance of Gtk.Widget can be an instance of Gtk.Adjustment.
|
5
tests/sample_errors/expr_lookup_dne.blp
Normal file
5
tests/sample_errors/expr_lookup_dne.blp
Normal file
|
@ -0,0 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Overlay overlay {
|
||||
margin-bottom: bind overlay.child as (Label).not-a-property;
|
||||
}
|
1
tests/sample_errors/expr_lookup_dne.err
Normal file
1
tests/sample_errors/expr_lookup_dne.err
Normal file
|
@ -0,0 +1 @@
|
|||
4,48,14,Gtk.Label does not have a property called not-a-property
|
5
tests/sample_errors/expr_lookup_no_properties.blp
Normal file
5
tests/sample_errors/expr_lookup_no_properties.blp
Normal file
|
@ -0,0 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Overlay overlay {
|
||||
margin-bottom: bind overlay.margin-bottom.what;
|
||||
}
|
1
tests/sample_errors/expr_lookup_no_properties.err
Normal file
1
tests/sample_errors/expr_lookup_no_properties.err
Normal file
|
@ -0,0 +1 @@
|
|||
4,45,4,Type int does not have properties
|
|
@ -1 +1 @@
|
|||
4,3,19,Class Gtk.Label does not contain a property called not-a-real-property
|
||||
4,3,19,Class Gtk.Label does not have a property called not-a-real-property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue