Update dependencies from https://github.com/dotnet/arcade build 20190729.1 (#15881)
[mono-project.git] / mcs / tests / gtest-074.cs
blobb89e1c0ae0f34e7ece88023a9dd8192753920203
1 using System;
3 public struct Foo<T>
5 public T Data, Data2;
7 public Foo (T a, T b)
9 this.Data = a;
10 this.Data2 = b;
14 public class Test<T>
16 public T Data, Data2;
18 public Test (T a, T b)
20 this.Data = a;
21 this.Data2 = b;
25 class X
27 public static int Main ()
29 Foo<long> foo = new Foo<long> (3, 5);
30 if (foo.Data != 3)
31 return 1;
32 if (foo.Data2 != 5)
33 return 2;
35 Test<long> test = new Test<long> (3, 5);
36 if (test.Data != 3)
37 return 3;
38 if (test.Data2 != 5)
39 return 4;
41 return 0;