mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Validate object types
This commit is contained in:
parent
a0ba59af77
commit
d89f2356b4
11 changed files with 126 additions and 33 deletions
6
tests/sample_errors/class_assign.blp
Normal file
6
tests/sample_errors/class_assign.blp
Normal file
|
@ -0,0 +1,6 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Box box {}
|
||||
Label {
|
||||
label: box;
|
||||
}
|
1
tests/sample_errors/class_assign.err
Normal file
1
tests/sample_errors/class_assign.err
Normal file
|
@ -0,0 +1 @@
|
|||
5,10,3,Cannot assign Gtk.Box to string
|
5
tests/sample_errors/obj_prop_type.blp
Normal file
5
tests/sample_errors/obj_prop_type.blp
Normal file
|
@ -0,0 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Scale {
|
||||
adjustment: Label {};
|
||||
}
|
1
tests/sample_errors/obj_prop_type.err
Normal file
1
tests/sample_errors/obj_prop_type.err
Normal file
|
@ -0,0 +1 @@
|
|||
4,3,21,Cannot assign Gtk.Label to Gtk.Adjustment
|
5
tests/sample_errors/object_dne.blp
Normal file
5
tests/sample_errors/object_dne.blp
Normal file
|
@ -0,0 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Label {
|
||||
label: my_label;
|
||||
}
|
1
tests/sample_errors/object_dne.err
Normal file
1
tests/sample_errors/object_dne.err
Normal file
|
@ -0,0 +1 @@
|
|||
4,10,8,Could not find object with ID my_label
|
Loading…
Add table
Add a link
Reference in a new issue