https://bugzilla.novell.com/show_bug.cgi?id=421628


           Summary: Attribute on index parameter of indexer missing with
                    mcs.
           Product: Mono: Compilers
           Version: 2.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          Found By: ---


The following test code shows the bug.

Compiled with csc, Output :
System.Runtime.InteropServices.MarshalAsAttribute

Compiled with mcs 2.0 Output :
(nothing)

This is a regression from 1.9.

using System;
using System.Runtime.InteropServices;

public class Test
{
        static public void Main (string[] args)
        {
                foreach (object attr in typeof (IFoo).GetMethod
("get_Item").GetParameters ()[0].GetCustomAttributes (false))
                        Console.WriteLine (attr);
        }

        public interface IFoo
        {
                int this[[MarshalAs (UnmanagedType.Struct)]object
vt0BasedIdxOrId] { get; }
        }
}


-- 
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

Reply via email to