Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

20 lines
318 B
C#

public class A {
public static implicit operator double (A a)
{
return 0.5;
}
// unlike CS0034 case, two or more implicit conversion on other
// than string is still valid.
public static implicit operator int (A a)
{
return 0;
}
public static void Main ()
{
A a = new A ();
object p = a + a;
}
}