]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Deprecate implicit .begin for async methods
authorJürg Billeter <j@bitron.ch>
Tue, 31 Jul 2012 12:29:37 +0000 (14:29 +0200)
committerJürg Billeter <j@bitron.ch>
Tue, 31 Jul 2012 12:29:37 +0000 (14:29 +0200)
vala/valamethodcall.vala

index 33b820f774a28926c3c44edd4b634186e9e62b9c..0c6705e4ccdb8023b7a9df625b8048fa3a78568f 100644 (file)
@@ -1,6 +1,6 @@
 /* valamethodcall.vala
  *
- * Copyright (C) 2006-2011  Jürg Billeter
+ * Copyright (C) 2006-2012  Jürg Billeter
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -332,6 +332,9 @@ public class Vala.MethodCall : Expression {
                                        // begin or end call of async method
                                        if (ma.member_name != "end") {
                                                // begin (possibly implicit)
+                                               if (ma.member_name != "begin") {
+                                                       Report.deprecated (ma.source_reference, "implicit .begin is deprecated");
+                                               }
                                                params = m.get_async_begin_parameters ();
                                                ret_type = new VoidType ();
                                        } else {