Commit e331049d authored by Luca Bruno's avatar Luca Bruno

Do not warn for non-default parameter if it's ellipsis

parent dfa73616
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment