projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a607a4
)
New test.
author
Marek Safar
<marek.safar@gmail.com>
Wed, 7 Nov 2007 09:07:08 +0000
(09:07 -0000)
committer
Marek Safar
<marek.safar@gmail.com>
Wed, 7 Nov 2007 09:07:08 +0000
(09:07 -0000)
svn path=/trunk/mcs/; revision=89074
mcs/errors/cs0030-7.cs
[new file with mode: 0644]
patch
|
blob
diff --git a/mcs/errors/cs0030-7.cs
b/mcs/errors/cs0030-7.cs
new file mode 100644
(file)
index 0000000..
0410ad8
--- /dev/null
+++ b/
mcs/errors/cs0030-7.cs
@@ -0,0
+1,28
@@
+// CS0030: Cannot convert type `S' to `E'
+// Line: 10
+
+enum E
+{
+ V
+}
+
+struct S
+{
+ public static explicit operator int (S val)
+ {
+ return 1;
+ }
+}
+
+class C
+{
+ E Foo ()
+ {
+ S s = new S ();
+ return (E) s;
+ }
+
+ public static void Main ()
+ {
+ }
+}