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-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git]
/
errors
/
cs0557-3.cs
blob
40f1fca218de163ac8bb1369c5e9104409292eec
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
}