https://bugzilla.novell.com/show_bug.cgi?id=383444
Summary: typeof (Type<>) fails when used in custom attribute
constructor.
Product: Mono: Runtime
Version: SVN
Platform: All
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P5 - None
Component: generics
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: ---
The following code fails with error
** (./a.exe:24838): WARNING **: Cannot load type 'B`1[T]'
Constructor of attribute A gets null instead of generic type definition.
[ A (typeof (B<>)) ]
public class A : System.Attribute
{
static int ret = 1;
public A (System.Type type)
{
if (type == typeof (B<>))
ret = 0;
}
public static int Main ()
{
typeof (A).GetCustomAttributes (true);
return ret;
}
}
class B<T>
{
}
--
Configure bugmail: https://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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs