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
Merge pull request #15293 from lewing/wasm-clean
[mono-project.git]
/
mcs
/
tests
/
gtest-614.cs
blob
d68193ad0bfb0aa9248d2f40cfc0a77293581651
1
using
System
;
2
3
struct
S
4
{
5
public static explicit operator int
? (
S
?
s
)
6
{
7
throw new
ApplicationException
();
8
}
9
10
public static implicit operator int
(
S
?
s
)
11
{
12
return
2
;
13
}
14
}
15
16
class
C
17
{
18
public static int
Main
()
19
{
20
int
?
nn
=
3
;
21
S
?
s
=
new
S
();
22
int
?
ret
=
s
??
nn
;
23
if
(
ret
!=
2
)
24
return
1
;
25
26
return
0
;
27
}
28
}