diff options
author | Jürg Billeter <j@bitron.ch> | 2009-09-29 22:19:18 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2009-09-29 22:19:18 +0200 |
commit | 99ec168d1042c9baa38819805edaadfda2646cd2 (patch) | |
tree | 9fa8fac7b0918b7b7e4bbc15ba841c66b23d7307 /tests | |
parent | 9c0e7c1447bb932df92e6f0a0966e1da363f2c9d (diff) | |
download | vala-99ec168d1042c9baa38819805edaadfda2646cd2.tar.gz |
Support postfix operator on array members
Fixes bug 596637.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | tests/basic-types/bug596637.vala | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index f1058b826..821b4a259 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -20,6 +20,7 @@ TESTS = \ basic-types/strings.vala \ basic-types/arrays.vala \ basic-types/pointers.vala \ + basic-types/bug596637.vala \ namespaces.vala \ methods/lambda.vala \ methods/closures.vala \ diff --git a/tests/basic-types/bug596637.vala b/tests/basic-types/bug596637.vala new file mode 100644 index 000000000..904de17ff --- /dev/null +++ b/tests/basic-types/bug596637.vala @@ -0,0 +1,5 @@ +void main () { + int[] a = new int[1]; + a[0]++; + assert (a[0] == 1); +} |