summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1728-2.cs
blob: 8af73f45747e94ed2cfb3d4fd9b5f8455d70d417 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// CS1728: Cannot create delegate from method `long?.GetValueOrDefault()' because it is a member of System.Nullable<T> type
// Line: 10

using System;

class C
{
	public static void Main ()
	{
		Func<long> a = new long?().GetValueOrDefault;
	}
}