2010-06-04 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0030-10.cs
blobe83368382972c839fb9c621c3775ce6cd09c66fe
1 // CS0030: Cannot convert type `TestCase.MyEnum' to `TestCase.OSType'
2 // Line: 9
4 public class TestCase
6 static void Main ()
8 MyEnum me = MyEnum.Value1;
9 OSType os = (OSType)me;
12 struct OSType {
13 int value;
15 public int Value {
16 get { return Value; }
19 public OSType (int value)
21 this.value = value;
24 public static implicit operator OSType (int i)
26 return new OSType (i);
30 enum MyEnum {
31 Value1