Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-524.cs
1 // Compiler options: -warnaserror
2
3 // No CS1720 warning
4
5 using System;
6
7 class C
8 {
9         static T M<T> () where T : struct
10         {
11                 return ((Nullable<T>)null).GetValueOrDefault ();
12         }
13         
14         public static int Main ()
15         {
16                 if (M<int> () != 0)
17                         return 1;
18                 
19                 return 0;
20         }
21 }