groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GROOVY-7953) Property expressions for extension methods on primitives fail STC
Date Sun, 09 Oct 2016 17:04:20 GMT

    [ https://issues.apache.org/jira/browse/GROOVY-7953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15560295#comment-15560295
] 

ASF GitHub Bot commented on GROOVY-7953:
----------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/groovy/pull/442


> 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
>             Fix For: 2.5.0-beta-1
>
>
> 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)

Mime
View raw message