Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-283.cs
1 public interface IFoo
2 {
3         void Foo<T>(ref T? v) where T:struct;
4         void Foo<T>(ref T v) where T:new();
5 }
6
7 public struct Point
8 {
9         int x, y;
10         public Point(int x, int y) { this.x = x; this.y = y; }
11 }
12
13 struct TestPoint
14 {
15         public static void Serialize(IFoo h)
16         {
17                 Point  point1 = new Point (0, 1);
18                 Point? point2 = new Point (1, 2);
19                 h.Foo (ref point1);
20                 h.Foo (ref point2);
21         }
22         public static void Main(){}
23 }