[Mono-dev] Mono 2.8 regression

Federico Di Gregorio fog at initd.org
Mon Dec 20 04:27:42 EST 2010


On 20/12/2010 10:15, Jb Evain wrote:
> On Mon, Dec 20, 2010 at 10:01 AM, Federico Di Gregorio <fog at initd.org> wrote:
>> > I'd like to have someone tell me «Eck! Whay did you do that? That's wrong!».
> Eck! Why did you do that? That's wrong!
> 
> (You're welcome ;)
> 
>> > test.cs(15,16): error CS0030: Cannot convert type
>> > `System.Func<string,int,T>' to `System.Func<string,int,S>'
> Right, in the code you posted, there's no relation between T and S. So
> naturally, you can't convert from one to the other. Just as you can't
> convert Func<string, int> to Func<string, string>.
> 
> So It's not a regression, it's more like a bug fix.

Yep, the full subject was "Mono 2.8 regression _in my code_". :)

Now, there is any way to force such a cast (I am _sure_ S and T are
exactly the same type)? If not, alas, I can write slightly more
complicated code to do the same thing...

federico

-- 
Federico Di Gregorio                                       fog at initd.org
  I terminali seriali sono in via di estinzione (infatti quello che
   c'era si è estinto)                                 -- Simone Caldana


More information about the Mono-devel-list mailing list