repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2010-03-02 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git]
/
errors
/
cs0557-3.cs
blob
1e686a8ee37f5e0ab81fbe01243e4bf2854acb25
1
// cs0557.cs: Duplicate user-defined conversion in type `Foo'
2
// Line: 5
3
4
public enum
Bar
5
{
6
ABar
7
}
8
9
10
public class
Foo
11
{
12
public static explicit operator
Foo
(
Bar the_bar
)
13
{
14
return new
Foo
();
15
}
16
public static implicit operator
Foo
(
Bar the_bar
)
17
{
18
return new
Foo
();
19
}
20
}