Merge pull request #1861 from saper/home-override
[mono-project.git] / mcs / tests / gtest-optional-27.cs
blob50558c2bf0dc1581ac0b6e8656148001914ff8ca
1 using System;
3 class EnumWrapperCtor<T>
5 public enum Test
7 Wrong,
8 MyDefault
11 readonly Test myVal;
13 public EnumWrapperCtor (Test value = Test.MyDefault)
15 myVal = value;
18 public Test getValue ()
20 return myVal;
24 public class C
26 public static int Main ()
28 var ew = new EnumWrapperCtor<int> ();
29 if ((int) ew.getValue () != 1)
30 return 1;
32 return 0;