[Mono-bugs] [Bug 697236] New: dmcs doesn't support custom attributes on covariant generic parameters

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue May 31 12:21:41 EDT 2011



           Summary: dmcs doesn't support custom attributes on covariant
                    generic parameters
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: x86-64
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: msafar at novell.com
        ReportedBy: jonpryor at vt.edu
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7)
AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.71 Safari/534.24

dmcs doesn't support custom attributes on co/contravariant generic parameters.

Reproducible: Always

Steps to Reproduce:
Compile the following code:

  [System.AttributeUsage (System.AttributeTargets.All)]
  class DocAttribute : System.Attribute {
    public DocAttribute (string name)

  delegate TR Func<[Doc("a")] in T1, [Doc("r")] out TR>(T1 a);

  class Test {
    public static void Main ()

Actual Results:  
$ dmcs cagp.cs
cagp.cs(8,16): error CS1525: Unexpected symbol `<'
Compilation failed: 1 error(s), 0 warnings

Expected Results:  
No error.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list