mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
Fix #75486. * class.cs (TypeContainer.first_nonstatic_field): Rename from has_nonstatic_fields. Make into a FieldBase pointer. (TypeContainer.AddField): Add CS0282 check. (TypeContainer.EmitType): Update. In errors: * cs0282.cs: New test from #75486. svn path=/trunk/mcs/; revision=47030
12 lines
235 B
C#
12 lines
235 B
C#
// cs0282.cs: struct instance field `S.y' found in different declaration from instance field `S.x'
|
|
// Line: 8
|
|
// Compiler options: -warn:4 -warnaserror
|
|
|
|
partial struct S {
|
|
int x;
|
|
}
|
|
partial struct S {
|
|
int y;
|
|
static void Main () {}
|
|
}
|