]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Skip default-value positioning check for parameters of coroutines 70e694d044dd835982a7f9017b61cc39aa74d286
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 18 Jan 2018 19:41:08 +0000 (20:41 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 18 Jan 2018 19:56:36 +0000 (20:56 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=644241

vala/valamethod.vala

index ab85c121ed434ba3c3910bb651886d712f8d29d4..66c131b71c8c17f91728130471ace0f2fad100a3 100644 (file)
@@ -728,6 +728,10 @@ public class Vala.Method : Subroutine, Callable {
                                error = true;
                                Report.error (param.source_reference, "Reference parameters are not supported for async methods");
                        }
+                       // TODO: begin and end parameters must be checked separately for coroutines
+                       if (coroutine) {
+                               continue;
+                       }
                        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) {