ajwang / groovypptest

Automatically exported from code.google.com/p/groovypptest
0 stars 0 forks source link

Field access breaks compilation when inside a closure #323

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Test project attached. Simply run './gradlew test'

Original issue reported on code.google.com by p.ledbr...@gmail.com on 2 Dec 2010 at 11:01

Attachments:

GoogleCodeExporter commented 8 years ago
Yes .@ fails with inner classes.
But in fact you don't need it and can use this.name

Original comment by alex.tka...@gmail.com on 2 Dec 2010 at 11:52

GoogleCodeExporter commented 8 years ago
But, if you use this.name, will it access the field or the getter method? And 
is that behaviour different from Groovy?

Original comment by p.ledbr...@gmail.com on 2 Dec 2010 at 11:59

GoogleCodeExporter commented 8 years ago
Will be available in 0.4.95

Original comment by alex.tka...@gmail.com on 2 Dec 2010 at 1:36