Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gtest-216.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5a53cd7445a42168ae445f445761c227ae43a85b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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; }
}