Commit fbf6b363 authored by Richard Wiedenhöft's avatar Richard Wiedenhöft Committed by Luca Bruno

Accept single ellipsis parameter for instance methods

Fixes bug 726347
parent 79515413
......@@ -648,8 +648,8 @@ public class Vala.Method : Subroutine {
return_type.check (context);
}
if (parameters.size == 1 && parameters[0].ellipsis && body != null) {
// accept just `...' for external methods for convenience
if (parameters.size == 1 && parameters[0].ellipsis && body != null && binding != MemberBinding.INSTANCE) {
// accept just `...' for external methods and instance methods
error = true;
Report.error (parameters[0].source_reference, "Named parameter required before `...'");
}
......
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