blob: 68f17dd55903e4c790f6b655f4c85fc477bae5e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// CS0557: Duplicate user-defined conversion in type `Foo'
// Line: 5
public enum Bar
{
ABar
}
public class Foo
{
public static explicit operator Foo(Bar the_bar)
{
return new Foo();
}
public static implicit operator Foo(Bar the_bar)
{
return new Foo();
}
}
|