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-452.cs
blob
8eafd9469f76d8036ead29c5c8cb7a1bf7874289
1
using
System
;
2
3
public class
Test
4
{
5
public static int
Main
()
6
{
7
S mc
=
new
S
();
8
float
?
f
=
mc
;
9
if
(
f
!=
5
)
10
return
1
;
11
12
return
0
;
13
}
14
}
15
16
struct
S
17
{
18
public static implicit operator float
(
S p1
)
19
{
20
throw new
ApplicationException
(
"should not be called"
);
21
}
22
23
public static implicit operator float
? (
S p1
)
24
{
25
return
5
;
26
}
27
}