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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Anguiano Olarra <jaime@mono-cvs.ximian.com>2002-12-02 12:29:05 +0300
committerJaime Anguiano Olarra <jaime@mono-cvs.ximian.com>2002-12-02 12:29:05 +0300
commit0de8e9c6a2e3a010fefbba60104852cd70e41307 (patch)
tree2291fd6effe88bd105baab0ad11fc1f72ebefa13 /mcs/errors/cs0056.cs
parentd6968462eaf0dd8b2b170f34d80d92631ab62b50 (diff)
Test for C# Compiler Error CS0056. Inconsistent accessibility. Operator return type less accessible than operator.
svn path=/trunk/mcs/; revision=9339
Diffstat (limited to 'mcs/errors/cs0056.cs')
-rw-r--r--mcs/errors/cs0056.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/mcs/errors/cs0056.cs b/mcs/errors/cs0056.cs
new file mode 100644
index 00000000000..4029dda4509
--- /dev/null
+++ b/mcs/errors/cs0056.cs
@@ -0,0 +1,15 @@
+// cs0056.cs: Incompatible accessibility. Operator return type is less accessible than operator.
+// Line: 10
+
+using System;
+
+class ErrorCS0056 {
+}
+
+class Foo {
+ public static implicit operator ErrorCS0056(Foo foo) {
+ return new ErrorCS0056 ();
+ }
+ public static void Main () {
+ }
+}