summaryrefslogtreecommitdiff
path: root/tests/structs
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2009-09-26 16:09:51 +0200
committerJürg Billeter <j@bitron.ch>2009-09-26 16:09:51 +0200
commit65ff8c34df5fd892e209e570c292a5f6a5c4d0ed (patch)
treed0bc1cc73bb9e8d2145ee90aed3ef2c2952184a4 /tests/structs
parent22700451b50c25bc85e94c443b4747273319b46b (diff)
downloadvala-65ff8c34df5fd892e209e570c292a5f6a5c4d0ed.tar.gz
Add test for bug 595587
Diffstat (limited to 'tests/structs')
-rw-r--r--tests/structs/bug595587.vala14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/structs/bug595587.vala b/tests/structs/bug595587.vala
new file mode 100644
index 000000000..84c055360
--- /dev/null
+++ b/tests/structs/bug595587.vala
@@ -0,0 +1,14 @@
+struct Foo {
+ int x;
+}
+
+class Bar {
+ public Foo? foo {
+ set {
+ bool b = (value == null);
+ }
+ }
+}
+
+void main () {
+}