Eric Milles created GROOVY-11380:
------------------------------------
Summary: STC: property reference to generated method not recognized
Key: GROOVY-11380
URL: https://issues.apache.org/jira/browse/GROOVY-11380
Project: Groovy
Issue Type: Bug
Components: Static Type Checker
Reporter: Eric Milles
Consider the following:
{code:groovy}
class Foo {
def getBar(bar = 'bar') { bar }
}
@CompileStatic
void test(Foo foo) {
print foo.bar
}
test(new Foo())
{code}
Type checker says: "No such property: bar for class: Foo". Methods added by
{{Verifier}}, like ones for default arguments, are not checked by property
resolution.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)