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
[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git]
/
mcs
/
tests
/
test-931.cs
blob
7a1f7be472da3a531b65732ba4908da371b8421a
1
using
System
;
2
3
class
MainClass
4
{
5
public static implicit operator string
(
MainClass src
)
6
{
7
return null
;
8
}
9
10
public static int
Main
()
11
{
12
var
obj
=
new
MainClass
();
13
var
s
=
"x"
;
14
var
res
= (
string
)
obj
??
s
;
15
if
(
res
!=
"x"
)
16
return
1
;
17
18
return
0
;
19
}
20
}