Files
mono/mcs/errors/cs0282.cs
T
Raja R Harinath 106ad2f37e In mcs:
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
2005-07-07 09:50:44 +00:00

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 () {}
}