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-08-04 18:04:42 +0400
committerMarek Safar <marek.safar@gmail.com>2004-08-04 18:04:42 +0400
commit6094dea7afd28e2ce215fbae4fcd40fc6ecf231f (patch)
tree5ed583d0eebeb371999b84a2a4f21eb4afc36fba /mcs/errors/cs0199.cs
parentbabecb6d8bc9a7ba57c56e7cb072a53c5ee393e0 (diff)
2004-08-04 Marek Safar <marek.safar@seznam.cz>
* 62 new error tests. svn path=/trunk/mcs/; revision=31867
Diffstat (limited to 'mcs/errors/cs0199.cs')
-rw-r--r--mcs/errors/cs0199.cs27
1 files changed, 8 insertions, 19 deletions
diff --git a/mcs/errors/cs0199.cs b/mcs/errors/cs0199.cs
index ef9b8f081b1..c8c53648e7e 100644
--- a/mcs/errors/cs0199.cs
+++ b/mcs/errors/cs0199.cs
@@ -1,19 +1,8 @@
-// cs0158.cs: A static readonly field cannot be passed ref or out (except in a static constructor)
-// Line: 16
-
-class ClassMain {
- static readonly int index;
-
- static ClassMain () {
- GetMaxIndex (ref index);
- }
-
- static void GetMaxIndex (ref int value) {
- value = 5;
- }
-
- public static void Main () {
- GetMaxIndex (ref index);
- }
-}
-
+// cs0199.cs: A static readonly field cannot be passed ref or out (except in a static constructor) // Line: 19
+class ClassMain { static readonly int index;
+ static ClassMain ()
+ { GetMaxIndex (ref index); }
+ static void GetMaxIndex (ref int value)
+ { value = 5; }
+ public static void Main ()
+ { GetMaxIndex (ref index); } }