Merge all static runtime libs into libmono-static.
[mono.git] / mcs / errors / cs1690-5.cs
1 // CS1690: Cannot call methods, properties, or indexers on `A.point' because it is a value type member of a marshal-by-reference class
2 // Line: 27
3 // Compiler options: -warn:1 -warnaserror
4
5 using System;
6
7 public struct Coord 
8 {
9         public int val; 
10 }
11
12 public struct Point {
13         public Coord x;
14         public Coord y;
15 }
16
17 public class A : MarshalByRefObject
18 {
19    public Point point = new Point ();
20 }
21
22 public class Test
23 {
24    public static void Main ()
25    {
26         A a = new A ();
27         a.point.x.val = 0;
28    }
29 }