Re: Nested interface

2012-04-01 Thread Read Bixby
Thanks; entered as issue 7807. On Sunday, 1 April 2012 at 20:17:09 UTC, Timon Gehr wrote: On 04/01/2012 08:13 PM, Read Bixby wrote: Hm, I guess it's much simpler than that. I must not be understanding something about covariance. The following code produces the same error message (it has noth

Re: Nested interface

2012-04-01 Thread Timon Gehr
On 04/01/2012 08:13 PM, Read Bixby wrote: Hm, I guess it's much simpler than that. I must not be understanding something about covariance. The following code produces the same error message (it has nothing to do with nestedness or shared classes): interface Interface { Interface getNext(

Re: Nested interface

2012-04-01 Thread Read Bixby
around is to return NestedInterface from the two methods of the derived class rather than NestedImplementation, but I was kind of surprised it didn't compile (in the actual code, both the nested interface and the nested implementation were called "Node" which was stupid on

Nested interface

2012-04-01 Thread Read Bixby
ious workaround is to return NestedInterface from the two methods of the derived class rather than NestedImplementation, but I was kind of surprised it didn't compile (in the actual code, both the nested interface and the nested implementation were called "Node" which was stupid