[Mono-bugs] [Bug 421628] New: Attribute on index parameter of indexer missing with mcs.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Aug 29 14:53:18 EDT 2008


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: mono-bugs at lists.ximian.com
        ReportedBy: billholmes54 at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          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.


More information about the mono-bugs mailing list