a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
14 lines
322 B
C#
14 lines
322 B
C#
// CS0553: User-defined conversion `DerivedClass.implicit operator BaseClass(DerivedClass)' cannot convert to or from a base class
|
|
// Line: 8
|
|
|
|
class BaseClass {
|
|
}
|
|
|
|
class DerivedClass: BaseClass {
|
|
public static implicit operator BaseClass(DerivedClass value) {
|
|
return new BaseClass();
|
|
}
|
|
}
|
|
|
|
|