[Mono-bugs] [Bug 51167][Nor] New - MCS accepts non-cls compliant parameter type in cls compliant method

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 19 Nov 2003 13:55:19 -0500 (EST)


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 lluis@ximian.com.

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

--- shadow/51167	2003-11-19 13:55:19.000000000 -0500
+++ shadow/51167.tmp.5034	2003-11-19 13:55:19.000000000 -0500
@@ -0,0 +1,42 @@
+Bug#: 51167
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: lluis@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: MCS accepts non-cls compliant parameter type in cls compliant method
+
+MCS accepts non-cls compliant parameter type in cls compliant method
+
+Steps to reproduce the problem:
+Compile this:
+
+using System;
+[assembly:CLSCompliant(true)]
+
+class Test
+{
+	public void DoIt (Data d) {}
+}
+
+[CLSCompliant(false)]
+class Data
+{
+}
+
+
+Actual Results:
+Compilation succeeded
+
+Expected Results:
+error CS3001: Argument type 'Data' is not CLS-compliant