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
/
test-440.cs
blob
d8fe33765c3b22d2072a065abf3c301d5073780a
1
public class
A
{
2
public static implicit operator double
(
A a
)
3
{
4
return
0.5
;
5
}
6
7
// unlike CS0034 case, two or more implicit conversion on other
8
// than string is still valid.
9
public static implicit operator int
(
A a
)
10
{
11
return
0
;
12
}
13
14
public static void
Main
()
15
{
16
A a
=
new
A
();
17
object
p
=
a
+
a
;
18
}
19
}