From: Rico Tzschichholz Date: Thu, 18 Jan 2018 19:41:08 +0000 (+0100) Subject: vala: Skip default-value positioning check for parameters of coroutines X-Git-Tag: 0.34.14~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e61311ee37d54c4a75f94de8a75be2a120085481;p=thirdparty%2Fvala.git vala: Skip default-value positioning check for parameters of coroutines https://bugzilla.gnome.org/show_bug.cgi?id=644241 --- diff --git a/vala/valamethod.vala b/vala/valamethod.vala index 5986f8786..93dd85793 100644 --- a/vala/valamethod.vala +++ b/vala/valamethod.vala @@ -730,6 +730,10 @@ public class Vala.Method : Subroutine { 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) {