[Mono-bugs] [Bug 50117][Wis] New - mcs does not report CS3005 (case insensitive names in CLSCompliant classes)

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 25 Oct 2003 03:03:19 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by ginga@kit.hi-ho.ne.jp.

http://bugzilla.ximian.com/show_bug.cgi?id=50117

--- shadow/50117	2003-10-25 03:03:19.000000000 -0400
+++ shadow/50117.tmp.23060	2003-10-25 03:03:19.000000000 -0400
@@ -0,0 +1,47 @@
+Bug#: 50117
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ginga@kit.hi-ho.ne.jp               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs does not report CS3005 (case insensitive names in CLSCompliant classes)
+
+If target classes violates rules on CLS compliance, MS.NET csc reports 
+them, but mcs seems not. At least I noticed that there are same named 
+members in case-insensitive, it is not reported by mcs. For example,
+
+--------------
+using System;
+
+[assembly:CLSCompliant (true)]
+public class Test
+{
+        public Test Foo;
+        protected Test foo;
+}
+--------------
+
+This class cannot be compiled under csc.
+
+$ csc /t:library clscompliant.cs
+Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
+for Microsoft (R) .NET Framework version 1.1.4322
+Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
+
+clscompliant.cs(7,17): error CS3005: Identifier 'Test.foo' differing only 
+in case is not CLS-compliant
+clscompliant.cs(6,14): (Location of symbol related to previous error)
+
+
+How often does this happen? 
+- always.