[Mono-bugs] [Bug 65398][Nor] New - The attribute CLSCompliant doesen't seem to work as it should

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 6 Sep 2004 13:43:59 -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 fseoane@wanadoo.es.


--- shadow/65398	2004-09-06 13:43:59.000000000 -0400
+++ shadow/65398.tmp.9366	2004-09-06 13:43:59.000000000 -0400
@@ -0,0 +1,55 @@
+Bug#: 65398
+Product: Mono: Compilers
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: fseoane@wanadoo.es               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: The attribute CLSCompliant doesen't seem to work as it should
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+The CLSCompliant attribute doesen't seem to do what it claims to do. For
+example, if I try to compile the following assembly:
+using System;
+public class NotCompliant{
+        public static void Example()
+        {
+                uint a = 2;
+                Console.WriteLine(a);
+        }
+It compiles OK, but it should't (right?), since uint isn't a CLSCompliant type.
+Steps to reproduce the problem:
+1. compile the program above (with -target:library)
+Actual Results: a compiled dll
+Expected Results: errors saying that uint isn't a CLSCompliant type
+How often does this happen? 
+Additional Information: I use the latest mcs from CVS (6 sept 2004)