]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Report error for signals with variable argument lists
authorJürg Billeter <j@bitron.ch>
Mon, 24 Sep 2012 18:40:58 +0000 (20:40 +0200)
committerJürg Billeter <j@bitron.ch>
Mon, 24 Sep 2012 18:40:58 +0000 (20:40 +0200)
Fixes bug 683922.

vala/valasignal.vala

index fb5895ab948afc4910d5fbcfa88c3fbae8e5f454..3ddc453b38e6956b1454b70fe3b265cf2611c3fd 100644 (file)
@@ -1,6 +1,6 @@
 /* valasignal.vala
  *
- * Copyright (C) 2006-2011  Jürg Billeter
+ * Copyright (C) 2006-2012  Jürg Billeter
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -184,6 +184,11 @@ public class Vala.Signal : Symbol, Lockable {
                return_type.check (context);
                
                foreach (Parameter param in parameters) {
+                       if (param.ellipsis) {
+                               Report.error  (param.source_reference, "Signals with variable argument lists are not supported");
+                               return false;
+                       }
+
                        param.check (context);
                }