projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[runtime] Avoid indirection when building MonoContext on darwin
[mono.git]
/
mcs
/
tests
/
test-null-operator-20.cs
1
class M
2
{
3
public static void Main ()
4
{
5
string s = null;
6
s?.CompareTo ("xx").CompareTo(s?.EndsWith ("x")).GetHashCode ();
7
8
string s1 = "abcd";
9
string s2 = null;
10
11
var idx = s1.Substring(1)[s2?.GetHashCode () ?? 0].GetHashCode ();
12
}
13
}