From: Jürg Billeter Date: Tue, 31 Jul 2012 12:29:37 +0000 (+0200) Subject: Deprecate implicit .begin for async methods X-Git-Tag: 0.17.4~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2cdc33d7d8cc4a565e13643a81ece7959dc9f356;p=thirdparty%2Fvala.git Deprecate implicit .begin for async methods --- diff --git a/vala/valamethodcall.vala b/vala/valamethodcall.vala index 33b820f77..0c6705e4c 100644 --- a/vala/valamethodcall.vala +++ b/vala/valamethodcall.vala @@ -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 {