On Mon, Aug 06, 2012 at 11:32:15PM +0200, RivenTheMage wrote: > Is it bug or feature? :) > > ------------ > class Foo > { > int i; > > struct Bar > { > int j; > > int foobar() > { > return i + j; > } > } > } > ------------ > > main.d(ХХ): Error: this for i needs to be type Foo not type Bar
Try outer.i instead of just i. T -- Don't modify spaghetti code unless you can eat the consequences.