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 D8322200BA6 for ; Tue, 4 Oct 2016 03:15:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D6F20160AEC; Tue, 4 Oct 2016 01:15:22 +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 4C190160AE5 for ; Tue, 4 Oct 2016 03:15:22 +0200 (CEST) Received: (qmail 51379 invoked by uid 500); 4 Oct 2016 01:15:21 -0000 Mailing-List: contact notifications-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 notifications@groovy.apache.org Received: (qmail 51359 invoked by uid 99); 4 Oct 2016 01:15:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2016 01:15:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 52DFB2C014E for ; Tue, 4 Oct 2016 01:15:21 +0000 (UTC) Date: Tue, 4 Oct 2016 01:15:21 +0000 (UTC) From: "Shil Sinha (JIRA)" To: notifications@groovy.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (GROOVY-7953) Property expressions for extension methods on primitives fail STC MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 04 Oct 2016 01:15:23 -0000 [ https://issues.apache.org/jira/browse/GROOVY-7953?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shil Sinha updated GROOVY-7953: ------------------------------- Affects Version/s: 2.4.7 > Property expressions for extension methods on primitives fail STC > ----------------------------------------------------------------- > > Key: GROOVY-7953 > URL: https://issues.apache.org/jira/browse/GROOVY-7953 > Project: Groovy > Issue Type: Bug > Components: Static compilation, Static Type Checker > Affects Versions: 2.4.7 > Reporter: Shil Sinha > Assignee: Shil Sinha > > If we include groovy's TimeCategory as an extension class in an extension module, we can make method calls like {{3.getDays()}} in type checked code, but we cannot call that same method as a property i.e. {{3.days}} fails static type checking. -- This message was sent by Atlassian JIRA (v6.3.4#6332)