Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0553.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 331779d7ea05446489b7678ddf696eb0d0c3b0e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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();
        }
}