The chain-up of the variadic parameter is not possible.
https://bugzilla.gnome.org/show_bug.cgi?id=643088
methods/bug642350.vala \
methods/bug642885.vala \
methods/bug642899.vala \
+ methods/bug643088.test \
methods/bug646345.vala \
methods/bug648030.test \
methods/bug648320.vala \
--- /dev/null
+Invalid Code
+
+class Foo {
+ public abstract void bar (int p, ...);
+}
+
+void main () {
+}
}
}
+ if (is_variadic () && (is_abstract || is_virtual)) {
+ error = true;
+ Report.error (source_reference, "Abstract and virtual methods may not be variadic. Use a `va_list' parameter instead of `...'.");
+ return false;
+ }
+
if (is_abstract) {
if (parent_symbol is Class) {
var cl = (Class) parent_symbol;