Commented out a few lines to solve a problem in member access
authorMarco Ridoni <marco@mono-cvs.ximian.com>
Wed, 11 Dec 2002 15:07:45 +0000 (15:07 -0000)
committerMarco Ridoni <marco@mono-cvs.ximian.com>
Wed, 11 Dec 2002 15:07:45 +0000 (15:07 -0000)
svn path=/trunk/mcs/; revision=9561

mcs/mbas/ecore.cs

index 76fa1a96765f904b7ed1730c948342e315e5f15b..5ff74ef53c2867a7ac02ab98fcaec14cef4b0960 100644 (file)
@@ -3576,6 +3576,9 @@ namespace Mono.CSharp {
                                if (!me.IsStatic && (me.InstanceExpression == null))
                                        return e;
 
+/* FIXME    If this is not commented out, it seems that it's not possible to reach class members in mBas.
+            Maybe a grammar-related problem?
+
                                if (!me.IsStatic &&
                                    TypeManager.IsNestedChildOf (me.InstanceExpression.Type, me.DeclaringType)) {
                                        Error (38, "Cannot access nonstatic member `" + me.Name + "' of " +
@@ -3583,7 +3586,7 @@ namespace Mono.CSharp {
                                               me.InstanceExpression.Type + "'");
                                        return null;
                                }
-
+*/
                                if (right_side != null)
                                        e = e.DoResolveLValue (ec, right_side);
                                else