summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0030-14.cs
blob: 99ca9da44b5f4dd8725c52971dc09db0f49faf37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS0030: Cannot convert type `T' to `X'
// Line: 8
class Foo<T>
	where T : System.ICloneable
{
	public X Test (T t)
	{
		return (X) t;
	}
}

class X
{
	static void Main ()
	{ }
}