diff options
author | Miguel de Icaza <miguel@gnome.org> | 2001-12-10 04:25:29 +0300 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2001-12-10 04:25:29 +0300 |
commit | 5ba31c7e3a9928761c12e0a0280e86576ed8fb4d (patch) | |
tree | a11fab2c9c3b53ddea3643ecb8dc5fa2e7410a62 /mcs/errors/cs0552.cs | |
parent | a22d7c9dfb4062a69c2d8de81c5b89506873508b (diff) |
More errors that we catch
svn path=/trunk/mcs/; revision=1549
Diffstat (limited to 'mcs/errors/cs0552.cs')
-rwxr-xr-x | mcs/errors/cs0552.cs | 17 |
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; + } +} + |