[ 
https://issues.apache.org/jira/browse/GROOVY-11380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul King closed GROOVY-11380.
------------------------------

> 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
>            Assignee: Eric Milles
>            Priority: Minor
>             Fix For: 5.0.0-alpha-9
>
>
> 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)

Reply via email to