Bug 313174 (MONO51167) - MCS accepts non-cls compliant parameter type in cls compliant method
Summary: MCS accepts non-cls compliant parameter type in cls compliant method
Status: RESOLVED MOVED
Alias: MONO51167
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-19 20:55 UTC by Lluis Sanchez
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:19:45 UTC


---- Reported by lluis@ximian.com 2003-11-19 13:55:18 MST ----

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



---- Additional Comments From bmaurer@users.sf.net 2003-11-19 14:12:02 MST ----



*** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO30285 ***


Unknown operating system unknown. Setting to default OS "Other".
This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"