Files
mono/mcs/errors/cs0036.cs
T
Marek Safar f3a7b5e02c Updated to be more consistent
svn path=/trunk/mcs/; revision=45861
2005-06-13 12:15:59 +00:00

21 lines
351 B
C#

// cs0036.cs: An out parameter cannot have the `In' attribute
// Line: 10
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);
}
}