https://bugzilla.novell.com/show_bug.cgi?id=378088
User [EMAIL PROTECTED] added comment https://bugzilla.novell.com/show_bug.cgi?id=378088#c9 Jb Evain <[EMAIL PROTECTED]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #9 from Jb Evain <[EMAIL PROTECTED]> 2008-04-09 09:43:17 MST --- Alright, I've commited a proper fix to both HEAD and the 1.9 branch. In case you're interested, here it is: Index: CSharpCodeGenerator.cs =================================================================== --- CSharpCodeGenerator.cs (revision 100230) +++ CSharpCodeGenerator.cs (working copy) -705,6 +705,11 @@ } } + static bool IsAbstract (MemberAttributes attributes) + { + return (attributes & MemberAttributes.ScopeMask) == MemberAttributes.Abstract; + } + protected override void GenerateProperty (CodeMemberProperty property, CodeTypeDeclaration declaration) { -748,7 +753,7 @@ OutputStartBrace (); ++Indent; - if (declaration.IsInterface) + if (declaration.IsInterface || IsAbstract (property.Attributes)) { if (property.HasGet) output.WriteLine("get;"); if (property.HasSet) output.WriteLine("set;"); Index: ChangeLog =================================================================== --- ChangeLog (revision 100230) +++ ChangeLog (working copy) -1,3 +1,9 @@ +2008-04-09 Jb Evain <[EMAIL PROTECTED]> + + * CSharpCodeGenerator.cs: Emit bodyless getters and setters + for abstract properties. Based on a patch by + Stefan Rusek <[EMAIL PROTECTED]> + 2008-02-27 Marek Habersack <[EMAIL PROTECTED]> * CSharpCodeCompiler.cs: use asynchronous method of capturing mcs -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
