Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 29A62200CB5 for ; Wed, 12 Jul 2017 17:53:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 283B5169C96; Wed, 12 Jul 2017 15:53:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9512E169C7A for ; Wed, 12 Jul 2017 17:53:58 +0200 (CEST) Received: (qmail 36432 invoked by uid 500); 12 Jul 2017 15:53:57 -0000 Mailing-List: contact dev-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list dev@groovy.apache.org Received: (qmail 36407 invoked by uid 99); 12 Jul 2017 15:53:57 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jul 2017 15:53:57 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 1FFC819624D for ; Wed, 12 Jul 2017 15:53:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.472 X-Spam-Level: *** X-Spam-Status: No, score=3.472 tagged_above=-999 required=6.31 tests=[FORGED_HOTMAIL_RCVD2=1.187, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id E6mXh8NbMFQn for ; Wed, 12 Jul 2017 15:53:55 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 8A2DB627DC for ; Wed, 12 Jul 2017 15:48:18 +0000 (UTC) Received: from static.162.255.23.22.macminivault.com (unknown [162.255.23.22]) by mwork.nabble.com (Postfix) with ESMTP id 4718C523319DE for ; Wed, 12 Jul 2017 08:48:18 -0700 (MST) Date: Wed, 12 Jul 2017 08:48:18 -0700 (MST) From: Daniel Sun To: dev@groovy.incubator.apache.org Message-ID: <1499874498283-5742072.post@n5.nabble.com> In-Reply-To: <1499474014684-5742010.post@n5.nabble.com> References: <1499474014684-5742010.post@n5.nabble.com> Subject: Re: About declaring the field and property with same name MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Wed, 12 Jul 2017 15:53:59 -0000 Hi all, If no one is opposed to deprecating the weird feature, I'll modify the two tests at the weekend(shouldCompile -> shouldNotCompile): https://github.com/apache/groovy/blob/master/src/test/gls/scope/MultipleDefinitionOfSameVariableTest.groovy#L110 https://github.com/apache/groovy/blob/master/src/test/gls/scope/MultipleDefinitionOfSameVariableTest.groovy#L119 Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/About-declaring-the-field-and-property-with-same-name-tp5742010p5742072.html Sent from the Groovy Dev mailing list archive at Nabble.com.