X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ftests%2Fgtest-optional-02.cs;h=890b05c4b53ba3e27a2b0e3864460a1109b94e6a;hb=afd9c96b3f5c432a8d337dc134a59e09fa405a9a;hp=abc16080565889bcd8251842ba2d1dd8b6db50fd;hpb=8ef4e4703172fd32ada3f74b22df5203b4683493;p=mono.git diff --git a/mcs/tests/gtest-optional-02.cs b/mcs/tests/gtest-optional-02.cs index abc16080565..890b05c4b53 100644 --- a/mcs/tests/gtest-optional-02.cs +++ b/mcs/tests/gtest-optional-02.cs @@ -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; } }