diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-01-18 20:41:08 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-01-19 09:37:33 +0100 |
commit | e61311ee37d54c4a75f94de8a75be2a120085481 (patch) | |
tree | 470353eca95b99e0567c52cce6b317f4e61e9978 | |
parent | 46c90862466d6746d06fe93f0936ef6e5650e59e (diff) | |
download | vala-e61311ee37d54c4a75f94de8a75be2a120085481.tar.gz |
vala: Skip default-value positioning check for parameters of coroutines
https://bugzilla.gnome.org/show_bug.cgi?id=644241
-rw-r--r-- | vala/valamethod.vala | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |