2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs0647-10.cs
blobc6208c8903636e75dbd4279367c63e0f00bb7b55
1 // cs0647-10.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);