Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

19 lines
427 B
C#

// bug #76382
// differentiate Foo() and Foo<>() on override resolution.
public interface Ret { }
public interface Ret<T> {}
public abstract class BaseClass
{
public virtual Ret Foo () { return null; }
public virtual Ret<T> Foo<T> () { return null; }
public static void Main () {}
}
public class DerivedClass : BaseClass
{
public override Ret Foo () { return null; }
public override Ret<T> Foo<T> () { return null; }
}