[Mono-bugs] [Bug 608098] New: Mono csc behaving differently from MS csc
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat May 22 17:14:46 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=608098
http://bugzilla.novell.com/show_bug.cgi?id=608098#c0
Summary: Mono csc behaving differently from MS csc
Classification: Mono
Product: Mono: Compilers
Version: 2.6.x
Platform: All
URL: http://mosa-project.org
OS/Version: All
Status: NEW
Severity: Major
Priority: P5 - None
Component: C#
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: rootnode at mosa-project.org
QAContact: mono-bugs at lists.ximian.com
CC: rootnode at mosa-project.org
Found By: Development
Blocker: Yes
When trying to use an own Attribute class inside an assembly that is compiled
with /nostdlib,
Attributes from external referenced assemblies can't be used. This does work on
MS .Net, but not with Mono.
Steps to reproduce the problem:
LibA:
namespace Foo
{
public class BarAttribute : Attribute
{
}
}
/*------------------------------------------------------------------------*/
LibB (/nostdlib):
namespace System
{
public class Attribute /* Used at another place in LibB */
{
}
public class Something
{
[Bar]
public void DoSomething()
{
}
}
}
Actual Results:
[csc] Source/Something.cs: error CS0246: The type or namespace name `Bar'
could not be found. Are you missing a using directive or an assembly reference?
[csc] Source/Something.cs: error CS0616: `Foo.BarAttribute': is not an
attribute class
Expected Results:
It does work with MS .Net, so either MS csc is not according to
specification, or mono isn't.
How often does this happen?
Every time.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list