// cs0662.cs: 'C.Test(int, ref int)' cannot specify only Out attribute on a ref parameter. Use both In and Out attributes, or neither // Line: 8 using System.Runtime.InteropServices; class C { void Test(int i1, [Out, In2] ref int i2) {} }