Re: [Mono-dev] Generic Constraints Regression in 2.8

2010-11-15 Thread Tom Philpot
ject: Re: [Mono-dev] Generic Constraints Regression in 2.8 Hello, Could you please fill a bug report. Thanks Marek Except that Y is constrained to be of type Z and so is guaranteed to be a reference type. On Mon, Nov 15, 2010 at 12:30 AM, Bojan Rajkovic mailto:severedcr...@gmail.com>> wrote:

Re: [Mono-dev] Generic Constraints Regression in 2.8

2010-11-15 Thread Marek Safar
Hello, Could you please fill a bug report. Thanks Marek Except that Y is constrained to be of type Z and so is guaranteed to be a reference type. On Mon, Nov 15, 2010 at 12:30 AM, Bojan Rajkovic mailto:severedcr...@gmail.com>> wrote: On Nov 14, 2010, at 10:16 PM, Tom Philpot wrote:

Re: [Mono-dev] Generic Constraints Regression in 2.8

2010-11-15 Thread Bojan Rajkovic
On Nov 15, 2010, at 12:39 AM, dan witt wrote: > Except that Y is constrained to be of type Z and so is guaranteed to be a > reference type. Good catch, I misread. That's what I get for responding late at night. —Bojan ___ Mono-devel-list mailing list

Re: [Mono-dev] Generic Constraints Regression in 2.8

2010-11-14 Thread dan witt
Except that Y is constrained to be of type Z and so is guaranteed to be a reference type. On Mon, Nov 15, 2010 at 12:30 AM, Bojan Rajkovic wrote: > On Nov 14, 2010, at 10:16 PM, Tom Philpot wrote: > > The following code compiled with a warning on Mono 2.7 (as of 147679) but > has an error in 2.

Re: [Mono-dev] Generic Constraints Regression in 2.8

2010-11-14 Thread Bojan Rajkovic
On Nov 14, 2010, at 10:16 PM, Tom Philpot wrote: > The following code compiled with a warning on Mono 2.7 (as of 147679) but > has an error in 2.8. > > namespace Application > { > public class Z {} > > public class A > where Y : Z > where X : Y >

[Mono-dev] Generic Constraints Regression in 2.8

2010-11-14 Thread Tom Philpot
The following code compiled with a warning on Mono 2.7 (as of 147679) but has an error in 2.8. namespace Application { public class Z {} public class A where Y : Z where X : Y { protected void SomeOperation(Y y) { X x = y as X; } } public class Foo { public static void Main() {} } } /opt/mon