diff options
author | Jürg Billeter <j@bitron.ch> | 2010-03-24 21:01:13 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2010-03-24 21:01:13 +0100 |
commit | eb15c9844769c26cd4bf2196424941772dfee0a7 (patch) | |
tree | 05b39fd4313b76259440edcea986adcbec615209 /tests/structs | |
parent | 697192068a4c9f42e5e3b1b7bb6f2c389c389506 (diff) | |
download | vala-eb15c9844769c26cd4bf2196424941772dfee0a7.tar.gz |
Fix struct initialization with member initializers
Fixes bug 613825.
Diffstat (limited to 'tests/structs')
-rw-r--r-- | tests/structs/bug613825.vala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/structs/bug613825.vala b/tests/structs/bug613825.vala new file mode 100644 index 000000000..fc6cdd04b --- /dev/null +++ b/tests/structs/bug613825.vala @@ -0,0 +1,8 @@ +struct Foo { + int i; +} + +void main () { + var foo = Foo () { i = 42 }; + assert (foo.i == 42); +} |