[vala/wip/issue/658: 28/30] Made anonymous delegates experimental
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/issue/658: 28/30] Made anonymous delegates experimental
- Date: Wed, 21 Oct 2020 10:33:12 +0000 (UTC)
commit 4df4ba8c230305faf2ae920b43b464f62a4fcc84
Author: Nick Schrader <nick schrader mailbox org>
Date: Tue Oct 20 20:12:09 2020 -0300
Made anonymous delegates experimental
vala/valaparser.vala | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/vala/valaparser.vala b/vala/valaparser.vala
index 109a36ee7..a5cd4aeb2 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -3751,6 +3751,11 @@ public class Vala.Parser : CodeVisitor {
expect (TokenType.LAMBDA);
var type = parse_type (true, false);
+ var src = get_src (begin);
+ if (!context.experimental) {
+ Report.warning (src, "Anonymous delegates are experimental");
+ }
+
var d = new Delegate ("__delegate%i_".printf (next_anonymous_id++), type, get_src (begin),
comment);
d.anonymous = true;
d.access = method.access;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]