http://bugzilla.novell.com/show_bug.cgi?id=624650
http://bugzilla.novell.com/show_bug.cgi?id=624650#c0 Summary: Wrong error reported when using [Conditional] attribute with override keyword Classification: Mono Product: Mono: Compilers Version: 2.6.x Platform: All OS/Version: All Status: NEW Severity: Normal Priority: P5 - None Component: C# AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-GB; rv:1.9.2.7) Gecko/20100713 Firefox/3.6.7 ( .NET CLR 3.5.30729; .NET4.0E) public class MyClass { [System.Diagnostics.Conditional ("WOOHOO")] public override int GetHashCode () { return base.GetHashCode (); } } Reproducible: Always Steps to Reproduce: Compile the above code. Actual Results: error CS0578: Conditional not valid on `MyClass.GetHashCode()' because its return type is not void Expected Results: csc returns Error CS0243: The Conditional attribute is not valid on 'MyClass.GetHashCode()' because it is an override method (CS0243) -- Configure bugmail: http://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
