summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0019-63.cs
blob: 4e766c02199139275605be7284fdb1fe1491cbb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// CS0019: Operator `==' cannot be applied to operands of type `U' and `null'
// Line: 13

abstract class A<T>
{
	public abstract bool Foo<U> (U arg) where U : T;
}

class B : A<byte>
{
	public override bool Foo<U> (U arg)
	{
		return arg == null;
	}
}