a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
21 lines
272 B
C#
21 lines
272 B
C#
// 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();
|
|
}
|
|
}
|