mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Add validation for flag values
This commit is contained in:
parent
bebe784d1d
commit
8ea06e8a78
4 changed files with 25 additions and 0 deletions
6
tests/sample_errors/bitfield_member_dne.blp
Normal file
6
tests/sample_errors/bitfield_member_dne.blp
Normal file
|
@ -0,0 +1,6 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
EventControllerScroll {
|
||||
flags: vertical | not_a_value;
|
||||
name: a|b;
|
||||
}
|
2
tests/sample_errors/bitfield_member_dne.err
Normal file
2
tests/sample_errors/bitfield_member_dne.err
Normal file
|
@ -0,0 +1,2 @@
|
|||
4,21,11,not_a_value is not a member of Gtk.EventControllerScrollFlags
|
||||
5,9,3,string is not a bitfield type
|
Loading…
Add table
Add a link
Reference in a new issue