projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[msvc] Update csproj files (#5052)
[mono.git]
/
mcs
/
tests
/
gtest-optional-02.cs
diff --git
a/mcs/tests/gtest-optional-02.cs
b/mcs/tests/gtest-optional-02.cs
index abc16080565889bcd8251842ba2d1dd8b6db50fd..890b05c4b53ba3e27a2b0e3864460a1109b94e6a 100644
(file)
--- 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;
}
}