Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
[mono.git] / mcs / tests / gtest-313.cs
1 using System;
2
3 class Foo<T>
4 {
5         public enum TestEnum { One, Two, Three }
6
7         public TestEnum Test;
8
9         public Foo (TestEnum test)
10         {
11                 this.Test = test;
12         }
13 }
14
15 class X
16 {
17         public static void Main ()
18         {
19                 Foo<int>.TestEnum e = Foo<int>.TestEnum.One;
20                 Console.WriteLine (e);
21
22                 Foo<int> foo = new Foo<int> (e);
23                 foo.Test = e;
24         }
25 }