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

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=410369#c1

           Summary: [Regression] this[params type[] foo] getter's CIL
                    doesn't contain .param[] modifier.
           Product: Mono: Compilers
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          Found By: ---


Compile the following code as a.dll:

public class Foo
{
  public string this[params string[] types] { get { return ""; }}
}


Try to compile following code, referencing a.dll:

class Goo
{
  void Hoo ()
  {
    string s = new Foo () ["foo"];
  }
}


The compilation fails with:

b.cs(5,16): error CS1502: The best overloaded method match for
`Foo.this[string[]]' has some invalid arguments
/home/jan/projects/framework/Sixcom.Framework.Business.Misc.Editor/a.dll
(Location of the symbol related to previous error)
b.cs(5,16): error CS1503: Argument `#1' cannot convert `string' expression to
type `string[]'
Compilation failed: 2 error(s), 0 warnings

This is because get_Item's CIL code is missing .param[].

This is a regression - revision 105976 is known to work.


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