[vala/0.36: 149/212] vala: Skip default-value positioning check for parameters of coroutines
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.36: 149/212] vala: Skip default-value positioning check for parameters of coroutines
- Date: Sat, 14 Apr 2018 07:55:53 +0000 (UTC)
commit f4049605fbd3a667b389e14146f9757a635fa369
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Thu Jan 18 20:41:08 2018 +0100
vala: Skip default-value positioning check for parameters of coroutines
https://bugzilla.gnome.org/show_bug.cgi?id=644241
vala/valamethod.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vala/valamethod.vala b/vala/valamethod.vala
index 85f9d46..fc1593b 100644
--- a/vala/valamethod.vala
+++ b/vala/valamethod.vala
@@ -730,6 +730,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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]