-//
-// Accoring to the spec (26.7.1), this should compile since
-// there's an implicit reference conversion from B to A.
-//
-// However, csc reports a CS0309.
-//
-
using System;
public class Foo<T>
}
}
-public class B
+public class B : A
{
- public static implicit operator A (B b)
- {
- return new A ();
- }
}
class X