[mcs] Don't report hiding warnings for compiler generated fields
authorMarek Safar <marek.safar@gmail.com>
Mon, 26 May 2014 07:54:33 +0000 (09:54 +0200)
committerMarek Safar <marek.safar@gmail.com>
Mon, 26 May 2014 07:55:11 +0000 (09:55 +0200)
mcs/mcs/field.cs

index 4b0b21685993678e3891b45c005db46cbadaf61d..278f71e0f1830471ef1bda269a3856f7efafaaf2 100644 (file)
@@ -223,7 +223,9 @@ namespace Mono.CSharp
                        if (MemberType.IsStatic)
                                Error_VariableOfStaticClass (Location, GetSignatureForError (), MemberType, Report);
 
-                       CheckBase ();
+                       if (!IsCompilerGenerated)
+                               CheckBase ();
+
                        IsTypePermitted ();
                }