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-7952) Property expressions for extension methods starting with 'is' fail STC
Date Tue, 04 Oct 2016 21:16:20 GMT

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

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

GitHub user shils opened a pull request:

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

    GROOVY-7952: Property expressions for extension methods starting with…

    … 'is' fail STC
    
    * Add support for 'is' getter method variants of GROOVY-5580

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/shils/groovy GROOVY-7952

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/groovy/pull/436.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 #436
    
----
commit 2904683fad2429c457b3c40c302b9d5e7956810b
Author: Shil Sinha <shil.sinha@gmail.com>
Date:   2016-10-04T21:08:20Z

    GROOVY-7952: Property expressions for extension methods starting with 'is' fail STC
    * Add support for 'is' getter method variants of GROOVY-5580

----


> Property expressions for extension methods starting with 'is' fail STC
> ----------------------------------------------------------------------
>
>                 Key: GROOVY-7952
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7952
>             Project: Groovy
>          Issue Type: Bug
>          Components: Static compilation, Static Type Checker
>    Affects Versions: 2.4.7
>            Reporter: Shil Sinha
>            Assignee: Shil Sinha
>
> Example:
> {code}
> import groovy.transform.TypeChecked
> void test() {
>     assert !'abc'.allWhitespace
> }
> {code}
> The code above fails static type checking with the following error:
> {code}
> [Static type checking] - No such property: allWhitespace for class: java.lang.String
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message