2009-10-22 Marek Safar <marek.safar@gmail.com>
[mcs.git] / errors / cs0647-11.cs
bloba4591ff5e52a8e721c69fbfe9765c5ba9427b788
1 // cs0647-11.cs: Error during emitting `System.Runtime.InteropServices.MarshalAsAttribute' attribute. The reason is `Specified unmanaged type is only valid on fields'
2 // Line: 10
4 using System;
5 using System.Runtime.InteropServices;
7 public class main {
9 [DllImport("libname", EntryPoint = "scumbag")]
10 static extern int scumbag(ref int X, [MarshalAs(UnmanagedType.ByValArray)] ref byte[] fb);