Commit 70e694d0 authored by Rico Tzschichholz's avatar Rico Tzschichholz

vala: Skip default-value positioning check for parameters of coroutines

https://bugzilla.gnome.org/show_bug.cgi?id=644241
parent 5573992d
......@@ -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) {
......
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