Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-optional-02.cs
index abc16080565889bcd8251842ba2d1dd8b6db50fd..890b05c4b53ba3e27a2b0e3864460a1109b94e6a 100644 (file)
@@ -16,6 +16,11 @@ public class C
        {
                return i ?? 9;
        }
+       
+       public static long Test4 (long? i = 5)
+       {
+               return i.Value;
+       }
 
        public static int Main ()
        {
@@ -34,6 +39,9 @@ public class C
                if (!Test3 ())
                        return 5;
 
+               if (Test4 () != 5)
+                       return 6;
+               
                return 0;
        }
 }