* cs-parser.jay: destructor_declaration's container is PartialContainer
not Class when partial types are used, so use Kind prop instead of 'is'.
svn path=/trunk/mcs/; revision=39366
+2005-01-21 Alp Toker <alp@atoker.com>
+
+ * cs-parser.jay: destructor_declaration's container is PartialContainer
+ not Class when partial types are used, so use Kind prop instead of 'is'.
+
2004-12-12 Martin Baulig <martin@ximian.com>
* expression.cs (Unary.TryReduceNegative): Added support for
{
if ((string) $5 != current_container.Basename){
Report.Error (574, lexer.Location, "Name of destructor must match name of class");
- } else if (!(current_container is Class)){
+ } else if (current_container.Kind != Kind.Class){
Report.Error (575, lexer.Location, "Destructors are only allowed in class types");
} else {
Location l = lexer.Location;