2010-06-04 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs1690-5.cs
blobe49fb02608a6ea88bae7f9bd0d79863cb8f833f1
1 // cs1690-4.cs: 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
5 using System;
7 public struct Coord
9 public int val;
12 public struct Point {
13 public Coord x;
14 public Coord y;
17 public class A : MarshalByRefObject
19 public Point point = new Point ();
22 public class Test
24 public static void Main ()
26 A a = new A ();
27 a.point.x.val = 0;