[
https://issues.apache.org/jira/browse/GROOVY-10414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King closed GROOVY-10414.
------------------------------
> 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: 3.0.10, 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)