repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Wasm] Fix memory override in mono_wasm_add_assembly
[mono-project.git]
/
mcs
/
tests
/
test-null-operator-20.cs
blob
d22f9624a0b4d7a30405ae9e976885932f5fe687
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
}