You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/10/08 16:45:20 UTC
[jira] [Commented] (GROOVY-7953) Property expressions for extension
methods on primitives fail STC
[ https://issues.apache.org/jira/browse/GROOVY-7953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15558291#comment-15558291 ]
ASF GitHub Bot commented on GROOVY-7953:
----------------------------------------
GitHub user shils opened a pull request:
https://github.com/apache/groovy/pull/442
GROOVY-7953: property expressions for extension methods on primitives…
… fail STC
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/shils/groovy GROOVY-7953
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/groovy/pull/442.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #442
----
commit 1e374d184cf19fe2aad19f8058f7bb284c07a6ca
Author: Shil Sinha <sh...@gmail.com>
Date: 2016-10-06T21:39:27Z
GROOVY-7953: property expressions for extension methods on primitives fail STC
----
> 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)