2005-05-12 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Thu, 12 May 2005 14:35:34 +0000 (14:35 -0000)
committerMartin Baulig <martin@novell.com>
Thu, 12 May 2005 14:35:34 +0000 (14:35 -0000)
* cs-parser.jay (property_declaration): Pass the `current_class',
not the `current_container' to Property's .ctor.  Fixes #74912.

svn path=/trunk/mcs/; revision=44443

mcs/gmcs/ChangeLog
mcs/gmcs/cs-parser.jay

index 63d45d21dd310d13dcb49ed63a61685c918ecd86..bfb88394b5dc91b3a5155f46cf2315806e500488 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-12  Martin Baulig  <martin@ximian.com>
+
+       * cs-parser.jay (property_declaration): Pass the `current_class',
+       not the `current_container' to Property's .ctor.  Fixes #74912.
+
 2005-05-11  Martin Baulig  <martin@ximian.com>
 
        * typemanager.cs (Closure): Copy this from MCS and merge all the
index bb5e0f7eb63a68d4a65dd49e889c333905f30567..21799469aab52e9ebbb2fce87b825b70c00c71ca 100644 (file)
@@ -1330,7 +1330,7 @@ property_declaration
                if (name.TypeArguments != null)
                        syntax_error (lexer.Location, "a property can't have type arguments");
 
-               prop = new Property (current_container, (Expression) $3, (int) $2, false,
+               prop = new Property (current_class, (Expression) $3, (int) $2, false,
                                     name, (Attributes) $1, get_block, set_block, loc);
                if (SimpleIteratorContainer.Simple.Yields)
                        prop.SetYields ();