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:
authorMiguel de Icaza <miguel@gnome.org>2001-12-10 04:25:29 +0300
committerMiguel de Icaza <miguel@gnome.org>2001-12-10 04:25:29 +0300
commit5ba31c7e3a9928761c12e0a0280e86576ed8fb4d (patch)
treea11fab2c9c3b53ddea3643ecb8dc5fa2e7410a62 /mcs/errors/cs0552.cs
parenta22d7c9dfb4062a69c2d8de81c5b89506873508b (diff)
More errors that we catch
svn path=/trunk/mcs/; revision=1549
Diffstat (limited to 'mcs/errors/cs0552.cs')
-rwxr-xr-xmcs/errors/cs0552.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/errors/cs0552.cs b/mcs/errors/cs0552.cs
new file mode 100755
index 00000000000..7fe395005de
--- /dev/null
+++ b/mcs/errors/cs0552.cs
@@ -0,0 +1,17 @@
+// cs0552.cs: user-defined conversion to/from interface
+// Line: 12
+//
+using System;
+using System.IO;
+
+//
+//
+// Implicit conversion to an interface is not permitted
+//
+class NoIDispose {
+ public static implicit operator IDisposable (NoIDispose a)
+ {
+ return a.x;
+ }
+}
+