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

cs0554.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e46270ea42e7fca6c83f65e108f4950146ef6360 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// cs0554.cs: User-defined conversion `BaseClass.implicit operator BaseClass(DerivedClass)' cannot convert to or from derived class
// Line: 5

class BaseClass {
        public static implicit operator BaseClass(DerivedClass value) {
                return new BaseClass();
        }
}

class DerivedClass: BaseClass {
}