Eric Milles created GROOVY-10414:
------------------------------------
Summary: STC: cannot set 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
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)