'no enclosing instance' error

Mark Mahieu mark at twistedbanana.demon.co.uk
Tue Jun 17 01:35:10 PDT 2008

While producing the StackOverflowError test case I noticed that this  
doesn't compile either - perhaps it's related:

class NoEnclosingInstance {

	{=> String} ref = this#toString();

NoEnclosingInstance.java:3: no enclosing instance of type  
NoEnclosingInstance is in scope
         {=> String} ref = this#toString();



More information about the closures-dev mailing list