Tue Nov 14 16:06:37 CET 2006 Paolo Molaro <lupus@ximian.com>
[mono.git] / mcs / mcs / decl.cs
index 336c6b3c420ed7155ec229bd087cfc6830f5f4a6..77a3929ae89e7de6165dce3b84fc75dc9d34c10c 100644 (file)
@@ -832,7 +832,7 @@ namespace Mono.CSharp {
                public bool CheckAccessLevel (Type check_type)
                {
                        TypeBuilder tb;
-                       if ((this is GenericMethod) || (this is Iterator))
+                       if (this is GenericMethod)
                                tb = Parent.TypeBuilder;
                        else
                                tb = TypeBuilder;