summaryrefslogtreecommitdiff
path: root/tests/gtktemplate/gtkchild-property-assignment.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gtktemplate/gtkchild-property-assignment.test')
-rw-r--r--tests/gtktemplate/gtkchild-property-assignment.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/gtktemplate/gtkchild-property-assignment.test b/tests/gtktemplate/gtkchild-property-assignment.test
new file mode 100644
index 000000000..4905ea87c
--- /dev/null
+++ b/tests/gtktemplate/gtkchild-property-assignment.test
@@ -0,0 +1,14 @@
+Invalid Code
+
+[GtkTemplate (ui = "/org/example/gtktemplate.ui")]
+public class GtkTemplate : Gtk.ApplicationWindow {
+ [GtkChild]
+ public unowned Gtk.Button button0 { get; set; }
+
+ void foo () {
+ button0 = new Gtk.Button ();
+ }
+}
+
+void main () {
+}