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