Bugzilla – Bug 311755
mcs doesn't report errors of type CS0054
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by jaimemonkey@yahoo.es 2002-12-01 14:00:56 MST ---- Package: Mono/MCS Priority: Normal Version: CVS 01-Dec-2002 Synopsis: mcs doesn't report errors of type CS0054 Bugzilla-Product: Mono/MCS Bugzilla-Component: Misc Description: Description of Problem: mcs doesn't report errors of type CS0054. When a property is more accessible than the level of accessibility of the return type, it should complain of that. Steps to reproduce the problem: Try the mcs/errors/cs0054.cs test in the CVS. Here is its code: // cs0054.cs: Inconsistent accessibility. Indexer return type is less accessible than indexer. // Line: using System; class ErrorCS0054 { } class Foo { ErrorCS0054[] errors; public ErrorCS0054 this[int i] { get { return new ErrorCS0054 (); } } public static void Main () { } } Setting qa contact to the default for this product. This bug either had no qa contact or an invalid one. ---- Additional Comments From martin@ximian.com 2002-12-07 14:45:24 MST ---- Reassigning to default owner, setting priority to minor according to our priority rules (mcs doesn't report an error message). ---- Additional Comments From martin@ximian.com 2002-12-07 14:48:05 MST ---- Why were all these bugs UNCONFIRMED ? ---- Additional Comments From martin@ximian.com 2002-12-18 13:03:13 MST ---- We're already doing this check, but apparently not everywhere as this bug shows. So we must try to find all places where this check is missing - if this isn't already the last one. This isn't hard to fix, the hardest part is figuring out whether this is the last bug report of this kind. ---- Additional Comments From martin@ximian.com 2002-12-18 13:23:41 MST ---- *** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO35856 *** Unknown bug field "cf_version_details" encountered while moving bug <cf_version_details>CVS 01-Dec-2002</cf_version_details> This bug was marked DUPLICATE in the database it was moved from. Changing resolution to "MOVED"