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: d0ea6f1e0a643b987213bef98126cfa8a8d450c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// cs0553.cs: 'DerivedClass.implicit operator BaseClass(DerivedClass)' : user defined conversion to/from base class
// Line: 8

class BaseClass {
}

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