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:
authorJaime Anguiano Olarra <jaime@mono-cvs.ximian.com>2002-12-01 16:06:28 +0300
committerJaime Anguiano Olarra <jaime@mono-cvs.ximian.com>2002-12-01 16:06:28 +0300
commitb6cc22a0903088ca028f05e409628199cdde7248 (patch)
tree677df6fea0fd48e1af0c35e59028c73aa263aa45 /mcs/errors/cs0036.cs
parent7f2266911e0dad03e3bc931a47f1b3c76fa0dbc9 (diff)
Test for C# Compiler error CS0036. Attribute [In] can't accompany an out parameter.
svn path=/trunk/mcs/; revision=9311
Diffstat (limited to 'mcs/errors/cs0036.cs')
-rw-r--r--mcs/errors/cs0036.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/mcs/errors/cs0036.cs b/mcs/errors/cs0036.cs
new file mode 100644
index 00000000000..92b84ffbd58
--- /dev/null
+++ b/mcs/errors/cs0036.cs
@@ -0,0 +1,20 @@
+// cs0036.cs: Attibute [In] cannot be accompaning the an 'out' parameter.
+// Line:
+
+using System;
+using System.Runtime.InteropServices;
+
+class ErrorCS0036 {
+ int i;
+
+ static void SetInteger ([In] out int i) {
+ i = 10;
+ }
+
+ public static void Main () {
+ int x;
+ SetInteger (out x);
+ Console.WriteLine ("The compiler should say: ErrorCS0036: {0}", x);
+ }
+}
+