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:
authorAlejandro Sánchez Acosta <asanchez@mono-cvs.ximian.com>2002-12-23 16:56:18 +0300
committerAlejandro Sánchez Acosta <asanchez@mono-cvs.ximian.com>2002-12-23 16:56:18 +0300
commit82828beee5413c7ceeb79ac2196161563e12de6b (patch)
treec9ae128d3f5ecb2c5a00dc472fde1113a0446871 /mcs/errors/cs0192.cs
parentc2b988119c974c5768b8fd7d86bb61acb637b78f (diff)
Added cs0192.cs test file.
svn path=/trunk/mcs/; revision=9842
Diffstat (limited to 'mcs/errors/cs0192.cs')
-rw-r--r--mcs/errors/cs0192.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/mcs/errors/cs0192.cs b/mcs/errors/cs0192.cs
new file mode 100644
index 00000000000..17ecc59fa29
--- /dev/null
+++ b/mcs/errors/cs0192.cs
@@ -0,0 +1,24 @@
+// cs0192.cs: You cannot pass a readonly field by ref or out (except in a constructor)
+// Line: 17
+
+using System;
+
+class A
+{
+ public readonly int a=5;
+
+ public void Inc (ref int a)
+ {
+ ++a;
+ }
+
+ public void IncCall ()
+ {
+ Inc (ref a);
+ }
+
+ static void Main ()
+ {
+ Console.WriteLine ("Test cs0192.cs");
+ }
+}