diff options
author | wxx <769218589@qq.com> | 2021-10-14 17:48:00 +0800 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-10-14 12:19:24 +0200 |
commit | 594cc46738ad59c475f7921dfb8b518c7c1c9537 (patch) | |
tree | 5561f24520c5a8a8f69c281940e9233b41907d7a /tests | |
parent | 0b3c86ef9fe31dccbdfc54810760679f4eb4709f (diff) | |
download | vala-594cc46738ad59c475f7921dfb8b518c7c1c9537.tar.gz |
vala: Parameter following ellipsis parameter is not allowed
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1237
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | tests/methods/ellipsis-preceding.test | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index d42298f6f..f35f5aeca 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -169,6 +169,7 @@ TESTS = \ methods/lambda.vala \ methods/closures.vala \ methods/contains.vala \ + methods/ellipsis-preceding.test \ methods/extern.vala \ methods/iterator.vala \ methods/parameter-fixed-array-initializer.vala \ diff --git a/tests/methods/ellipsis-preceding.test b/tests/methods/ellipsis-preceding.test new file mode 100644 index 000000000..b687a339c --- /dev/null +++ b/tests/methods/ellipsis-preceding.test @@ -0,0 +1,7 @@ +Invalid Code + +void foo (int i, ..., int j) { +} + +void main () { +} |