You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Shil Sinha (JIRA)" <ji...@apache.org> on 2016/10/04 01:14:21 UTC
[jira] [Created] (GROOVY-7953) Property expressions for extension
methods on primitives fail STC
Shil Sinha created GROOVY-7953:
----------------------------------
Summary: 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
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)