2009-10-22 Marek Safar <marek.safar@gmail.com>
[mcs.git] / errors / cs0030-7.cs
blob0410ad806d741fd9b4326713b3e6d5152c700bd2
1 // CS0030: Cannot convert type `S' to `E'
2 // Line: 10
4 enum E
9 struct S
11 public static explicit operator int (S val)
13 return 1;
17 class C
19 E Foo ()
21 S s = new S ();
22 return (E) s;
25 public static void Main ()