summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0647-10.cs
blob: aa5c0e3f9592f21074d466a33dcda55cf007a1bd (plain)
1
2
3
4
5
6
7
8
9
10
11
// CS0647: Error during emitting `System.Runtime.InteropServices.MarshalAsAttribute' attribute. The reason is `Specified unmanaged type is only valid on fields'
// Line: 10

using System;
using System.Runtime.InteropServices;

public class main {

    [DllImport("libname", EntryPoint = "scumbag")]
    static extern int scumbag(ref int X, [MarshalAs(UnmanagedType.ByValArray)] ref byte[] fb);
}