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

cs0636.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 418d08c7bc7d5494e4fc4e345f628731447ce253 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS0636: The FieldOffset attribute can only be placed on members of types marked with the StructLayout(LayoutKind.Explicit)
// Line: 10

using System;
using System.Runtime.InteropServices;

namespace cs0636 {
	struct GValue {
		public string name;
		[ FieldOffset (4) ] public int value;
	}
	
	class Tests {
		public static void Main () {
		}
	}
}