From: Luca Bruno Date: Sat, 24 Aug 2013 11:45:56 +0000 (+0200) Subject: Do not warn for non-default parameter if it's ellipsis X-Git-Tag: 0.21.2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e331049d0f66a04a1d3dc2c64eedf1a4f574c6ec;p=thirdparty%2Fvala.git Do not warn for non-default parameter if it's ellipsis --- diff --git a/vala/valamethod.vala b/vala/valamethod.vala index f1b757777..d1129d84f 100644 --- a/vala/valamethod.vala +++ b/vala/valamethod.vala @@ -661,7 +661,7 @@ public class Vala.Method : Subroutine { error = true; Report.error (param.source_reference, "Reference parameters are not supported for async methods"); } - if (optional_param && param.initializer == null) { + if (optional_param && param.initializer == null && !param.ellipsis) { Report.warning (param.source_reference, "parameter without default follows parameter with default"); } else if (param.initializer != null) { optional_param = true;