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:31:21 +0300
committerJaime Anguiano Olarra <jaime@mono-cvs.ximian.com>2002-12-02 12:31:21 +0300
commit530c86572dd5a191337476ecc0e1c72c2b53379a (patch)
tree7560129b29dd88f5cd3076bb3710a3c49a49d905 /mcs/errors/cs0057.cs
parent0de8e9c6a2e3a010fefbba60104852cd70e41307 (diff)
Test for C# Compiler Error CS0057. Inconsistent compatibility. Parameter type less accessible than operator.
svn path=/trunk/mcs/; revision=9340
Diffstat (limited to 'mcs/errors/cs0057.cs')
-rw-r--r--mcs/errors/cs0057.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/errors/cs0057.cs b/mcs/errors/cs0057.cs
new file mode 100644
index 00000000000..5fdd86ceab5
--- /dev/null
+++ b/mcs/errors/cs0057.cs
@@ -0,0 +1,17 @@
+// cs0057.cs: Inconsisten accessibility. Parameter type is less accessible than operator.
+// Line: 10
+
+using System;
+
+class ErrorCS0057 {
+}
+
+class Foo {
+ public static implicit operator ErrorCS0057(Foo bar) {
+ return new ErrorCS0057 ();
+ }
+
+ public static void Main () {
+ }
+}
+