summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0216-4.cs
blob: 8035db7afa6944eee16dd688edb96feadd6ab85e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS0216: The operator `Test.operator ==(Test, bool)' requires a matching operator `!=' to also be defined
// Line: 11

public abstract class Test
{
	public static bool operator == (Test lhs, bool rhs)
	{
		return false;
	}

	public static bool operator != (Test lhs, IDoNotExist rhs)
	{
		return !(lhs == rhs);
	}
}