[ https://issues.apache.org/jira/browse/GROOVY-4151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16479371#comment-16479371 ]
ASF GitHub Bot commented on GROOVY-4151: ---------------------------------------- Github user danielsun1106 commented on the pull request: https://github.com/apache/groovy/commit/c9eea7c30ececdc0a24939fb780c56c27eec798f#commitcomment-29020550 GROOVY-4151 test has been recovered by https://github.com/apache/groovy/commit/ef2fbe68d25ae7dce57ee2580c975c54e3dbaace > println "$this" fails in inner class, but println ''+this works > --------------------------------------------------------------- > > Key: GROOVY-4151 > URL: https://issues.apache.org/jira/browse/GROOVY-4151 > Project: Groovy > Issue Type: Bug > Affects Versions: 1.7.1 > Environment: linux, java 1.6 > Reporter: miles zarathustra > Assignee: Roshan Dawrani > Priority: Major > Fix For: 1.7.3, 1.8-beta-1 > > > {code} > class C { > class S { > // S() { println "$this" } // compilation error: unexpected token: this > S() { println ''+this } // OK > } > } > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)