[Mono-bugs] [Bug 410369] New: [Regression] this[params type[] foo] getter's CIL doesn' t contain .param[] modifier.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jul 18 10:46:57 EDT 2008


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

User jan.oravec at 6com.sk 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: mono-bugs at lists.ximian.com
        ReportedBy: jan.oravec at 6com.sk
         QAContact: mono-bugs at lists.ximian.com
          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.


More information about the mono-bugs mailing list