[
https://issues.apache.org/jira/browse/GROOVY-10414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles resolved GROOVY-10414.
----------------------------------
Fix Version/s: 4.0.0-rc-2
Resolution: Fixed
https://github.com/apache/groovy/commit/436adf29e24a0ea19c9168b012d7b2c728d64dcb
> STC: cannot set non-static outer class property via setter method
> -----------------------------------------------------------------
>
> Key: GROOVY-10414
> URL: https://issues.apache.org/jira/browse/GROOVY-10414
> Project: Groovy
> Issue Type: Bug
> Components: Static Type Checker
> Reporter: Eric Milles
> Assignee: Eric Milles
> Priority: Major
> Fix For: 4.0.0-rc-2
>
>
> Consider the following:
> {code:groovy}
> @groovy.transform.TypeChecked
> class Outer {
> class Inner {
> void test() {
> setFoo("bar")
> }
> }
> def foo
> }
> {code}
> The compiler emits an error for {{setFoo("bar")}} but {{foo = "bar"}} works
> just fine.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)