[Mono-bugs] [Bug 624650] New: Wrong error reported when using [Conditional] attribute with override keyword
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Jul 22 07:56:57 EDT 2010
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: mono-bugs at lists.ximian.com
ReportedBy: knocte at gmail.com
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list