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:
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:
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
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.
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
>
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