Using the latest code from git, I encountered another regression from 2.6
(similar to the problem I reported here:
https://bugzilla.novell.com/show_bug.cgi?id=653710). I discovered this in
mono-2-8 from git, but confirmed that it exists on the master too.
The following code fails to compile with a CS1061 error complaining that
Start() is not defined for W. In looking at the code, it appears that the
MemberCache.FindMembers (..) method only looks at the BaseType and not the
TypeArguments to determine which members should be available.
namespace Application
{
public class Z {}
public interface IGenericInterface<T>
{
T Start { get; }
}
public class A<Y, W>
where Y : Z, IGenericInterface<Y>
where W : Y
{
protected void SomeOtherOperation (W w)
{
w.Start ();
}
}
public class Foo { public static void Main () {}}
}
I've already opened https://bugzilla.novell.com/show_bug.cgi?id=657797 for this
error.
_______________________________________________
Mono-devel-list mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/mono-devel-list