Merge pull request #4845 from lambdageek/dev-coop-delegates
[mono.git] / mcs / errors / cs1728-2.cs
1 // CS1728: Cannot create delegate from method `long?.GetValueOrDefault()' because it is a member of System.Nullable<T> type
2 // Line: 10
3
4 using System;
5
6 class C
7 {
8         public static void Main ()
9         {
10                 Func<long> a = new long?().GetValueOrDefault;
11         }
12 }