Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2004-12-01 13:44:42 +0300
committerMarek Safar <marek.safar@gmail.com>2004-12-01 13:44:42 +0300
commit82e47309b6bb44d7cb738ecca7d7ee5687bc421f (patch)
treeccaa485a13775fa8b115e319163c1c22e75f2972 /mcs/errors/cs1690.cs
parent079eb0780d153bb214741c4c96cddcbb07dd5582 (diff)
svn path=/trunk/mcs/; revision=36894
Diffstat (limited to 'mcs/errors/cs1690.cs')
-rw-r--r--mcs/errors/cs1690.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/errors/cs1690.cs b/mcs/errors/cs1690.cs
new file mode 100644
index 00000000000..2681e8ca59c
--- /dev/null
+++ b/mcs/errors/cs1690.cs
@@ -0,0 +1,23 @@
+// cs1690.cs: Cannot call methods, properties, or indexers on 'A.point' because it is a value type member of a marshal-by-reference class
+// Line: 21
+
+using System;
+
+public struct Point
+{
+ public void Error () {}
+}
+
+public class A : MarshalByRefObject
+{
+ public Point point = new Point ();
+}
+
+public class Test
+{
+ public static void Main ()
+ {
+ A a = new A ();
+ a.point.Error ();
+ }
+}