tag rc1
[mcs.git] / errors / cs0036.cs
blobcd25c6e6f8e7cd08a62d8c4a60c5bb378206ffcf
1 // cs0036.cs: An out parameter cannot have the `In' attribute
2 // Line: 10
4 using System;
5 using System.Runtime.InteropServices;
7 class ErrorCS0036 {
8 int i;
10 static void SetInteger ([In] out int i) {
11 i = 10;
14 public static void Main () {
15 int x;
16 SetInteger (out x);
17 Console.WriteLine ("The compiler should say: ErrorCS0036: {0}", x);