summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0266-19.cs
blob: edf9e1c8192e29804b2e5a95230cd8a9a63b5ea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// CS0266: Cannot implicitly convert type `A' to `B'. An explicit conversion exists (are you missing a cast?)
// Line: 17

class A
{
	public static A operator -- (A x)
	{
		return new A ();
	}
}

class B : A
{
	static void Main ()
	{
		B b = new B ();
		--b;
	}
}