Merge pull request #4926 from BrzVlad/fix-tls-v5
[mono-project.git] / mcs / errors / cs0036.cs
blobf347f00c9d1d9d209244e9b878165f29963782a3
1 // CS0036: 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);