Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0637-2.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1052ff07bacac03e6d1bc114bf0a8c080d1c14c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
// CS0636: The 'FieldOffset' attribute is not allowed on static or const fields
// Line: 10

using System;
using System.Runtime.InteropServices;

[StructLayout(LayoutKind.Explicit)]
struct GValue {
	[FieldOffset (4)]
        public const int value = 3;
}