summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0619-53.cs
blob: 1cfd2de040f6789cbd81e508f48f6e83d1bb760c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// CS0619: `C.explicit operator byte(C)' is obsolete: `gg'
// Line: 17

using System;

class C
{
	[Obsolete ("gg", true)]
	public static explicit operator byte (C x)
	{
		return 1;
	}

	static void Main ()
	{
		C x = null;
		var y = (int) x;
	}
}