groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shil Sinha (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (GROOVY-6738) Type checking considers extension methods but not extension properties
Date Tue, 04 Oct 2016 19:18:20 GMT

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

Shil Sinha edited comment on GROOVY-6738 at 10/4/16 7:17 PM:
-------------------------------------------------------------

This appears to have been covered by GROOVY-5568, with the exception of a few cases: 
1. property expressions for extension methods starting with 'is' - GROOVY-7952 
2. property expressions for extension methods on primitives - GROOVY-7593


was (Author: shils):
This appears to have been covered by GROOVY-5568, with the exception of a few cases:
1. property expressions for extension methods starting with 'is'
2. property expressions for extension methods on primitives

> Type checking considers extension methods but not extension properties
> ----------------------------------------------------------------------
>
>                 Key: GROOVY-6738
>                 URL: https://issues.apache.org/jira/browse/GROOVY-6738
>             Project: Groovy
>          Issue Type: Bug
>          Components: Static Type Checker
>    Affects Versions: 2.3.0-rc-2
>            Reporter: Peter Niederwieser
>
> Say an extension class registered via an extension module declares a Player#getBonusPoints()
extension method. Then `player.getBonusPoints()` type-checks, but `player.bonusPoints` doesn't.



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

Mime
View raw message