eol
[mcs.git] / tests / test-660.cs
blob43fab414b647d6bbc8512b3a6454b5aeccfd971b
1 using System;
3 using System.Linq.Expressions;
5 public enum Code
7 Opened = 0,
8 Closed = 1,
9 ReckonedUp = 2
12 public struct Status
14 Code value;
16 public Status (Code value)
18 this.value = value;
21 public static implicit operator Status (Code x)
23 return new Status (x);
26 public static implicit operator Code (Status x)
28 return x.value;
32 public class Test
34 Status status;
36 public static void Main ()
38 Test test = new Test ();
40 if (test.status == Code.ReckonedUp) {
41 return;