On Mon, 09 Feb 2015 07:32:32 +0000, rumbu wrote: > class Outer { > class Inner { > static Inner createInner() > { > return new Inner(); //need 'this' to access member > this > } > } > } > > Is this a bug?
strictly speaking, this is not a bug. compiler doesn't do deep analysis on nested structures/classes to determine if they really require context pointer. you can use `static class Inner` to tell the compiler that `Inner` doesn't require any context.
signature.asc
Description: PGP signature