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
Take stars out of types where they make more sense.
[mono-project.git]
/
mcs
/
tests
/
gtest-588.cs
blob
efbc67e5f9194c3d45cde8bc35272e4f51d652d9
1
using
System
;
2
3
struct
S
4
{
5
public static implicit operator short
? (
S s
)
6
{
7
return
0
;
8
}
9
10
public static implicit operator short
(
S s
)
11
{
12
throw new
ApplicationException
();
13
}
14
}
15
16
class
Program
17
{
18
public static int
Main
()
19
{
20
S
?
s
=
null
;
21
S
?
s2
=
new
S
();
22
23
long
?
i
=
s
;
24
if
(
i
!=
null
)
25
return
1
;
26
27
double
?
ui
=
s2
;
28
if
(
ui
==
null
)
29
return
2
;
30
31
return
0
;
32
}
33
}