summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0023-25.cs
blob: d6f5c5bbe1a428ce01764c11bd924b96211ede34 (plain)
1
2
3
4
5
6
7
8
9
10
// CS0023: The `?' operator cannot be applied to operand of type `T'
// Line: 8

class C
{
	static void Foo<T> (T t) where T : struct
	{
		var r = t?.ToString ();
	}
}